From 432cab3fcf29fd28a4edaa18ce7b402ba6393e64 Mon Sep 17 00:00:00 2001 From: Steven Merrill Date: Tue, 2 Jul 2013 01:32:50 -0400 Subject: [PATCH] Small fix to be sure "full_disk_path" is put into state. --- builder/vmware/step_create_disk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/vmware/step_create_disk.go b/builder/vmware/step_create_disk.go index 56ae154a8..e3fdc9272 100644 --- a/builder/vmware/step_create_disk.go +++ b/builder/vmware/step_create_disk.go @@ -25,13 +25,13 @@ func (stepCreateDisk) Run(state map[string]interface{}) multistep.StepAction { ui.Say("Creating virtual machine disk") full_disk_path := filepath.Join(config.OutputDir, config.DiskName+".vmdk") + state["full_disk_path"] = full_disk_path if err := driver.CreateDisk(full_disk_path, fmt.Sprintf("%dM", config.DiskSize)); err != nil { err := fmt.Errorf("Error creating disk: %s", err) state["error"] = err ui.Error(err.Error()) return multistep.ActionHalt } - state["full_disk_path"] = full_disk_path return multistep.ActionContinue }