Don't show download message until downloading
For instance if the boot image already existspull/6953/head
parent
e6ba335e9c
commit
9e72a2ad9c
|
@ -79,7 +79,6 @@ func localISOPath(u *url.URL) string {
|
|||
|
||||
// ISO downloads and returns the path to the downloaded ISO
|
||||
func ISO(urls []string, skipChecksum bool) (string, error) {
|
||||
out.T(out.ISODownload, "Downloading VM boot image ...")
|
||||
errs := map[string]string{}
|
||||
|
||||
for _, url := range urls {
|
||||
|
@ -128,6 +127,8 @@ func downloadISO(isoURL string, skipChecksum bool) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
out.T(out.ISODownload, "Downloading VM boot image ...")
|
||||
|
||||
urlWithChecksum := isoURL + "?checksum=file:" + isoURL + ".sha256"
|
||||
if skipChecksum {
|
||||
urlWithChecksum = isoURL
|
||||
|
|
Loading…
Reference in New Issue