From a3c5fed2677622492c0b4b65842ebe644dc9e13a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 23 Jun 2013 18:23:00 -0700 Subject: [PATCH] builder/vmware, builder/virtualbox: Don't continue if ISO error --- builder/virtualbox/step_download_iso.go | 1 + builder/vmware/step_download_iso.go | 1 + 2 files changed, 2 insertions(+) diff --git a/builder/virtualbox/step_download_iso.go b/builder/virtualbox/step_download_iso.go index ffa86b9e5..124e30c19 100644 --- a/builder/virtualbox/step_download_iso.go +++ b/builder/virtualbox/step_download_iso.go @@ -67,6 +67,7 @@ DownloadWaitLoop: err := fmt.Errorf("Error downloading ISO: %s", err) state["error"] = err ui.Error(err.Error()) + return multistep.ActionHalt } break DownloadWaitLoop diff --git a/builder/vmware/step_download_iso.go b/builder/vmware/step_download_iso.go index 84e9f921e..bea1335f1 100644 --- a/builder/vmware/step_download_iso.go +++ b/builder/vmware/step_download_iso.go @@ -67,6 +67,7 @@ DownloadWaitLoop: err := fmt.Errorf("Error downloading ISO: %s", err) state["error"] = err ui.Error(err.Error()) + return multistep.ActionHalt } break DownloadWaitLoop