From 84ad413e23186f9ecfbb74d0e0a52a844c8a7628 Mon Sep 17 00:00:00 2001 From: bugbuilder Date: Sun, 23 Jul 2017 03:20:06 -0400 Subject: [PATCH] Set remote iso path --- builder/vmware/iso/step_remote_upload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/vmware/iso/step_remote_upload.go b/builder/vmware/iso/step_remote_upload.go index 852369627..2cb5003f5 100644 --- a/builder/vmware/iso/step_remote_upload.go +++ b/builder/vmware/iso/step_remote_upload.go @@ -36,9 +36,9 @@ func (s *stepRemoteUpload) Run(state multistep.StateBag) multistep.StepAction { checksumType := config.ISOChecksumType if !strings.HasPrefix(path, "skip_upload:") { + ui.Say(s.Message) log.Printf("Remote uploading: %s", path) newPath, err := remote.UploadISO(path, checksum, checksumType) - if err != nil { err := fmt.Errorf("Error uploading file: %s", err) state.Put("error", err) @@ -47,7 +47,7 @@ func (s *stepRemoteUpload) Run(state multistep.StateBag) multistep.StepAction { } state.Put(s.Key, newPath) } else { - state.Put(s.Key, strings.Split("skip_upload:", path)[0]) + state.Put(s.Key, strings.Split(path, "skip_upload:")[1]) } return multistep.ActionContinue