Created
May 9, 2014 18:40
-
-
Save rasa/f7ec1973bb194659bb1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/builder/vmware/common/step_clean_vmx.go b/builder/vmware/common/step_clean_vmx.go | |
index b55bcd5..aebbc68 100644 | |
--- a/builder/vmware/common/step_clean_vmx.go | |
+++ b/builder/vmware/common/step_clean_vmx.go | |
@@ -46,6 +46,7 @@ func (s StepCleanVMX) Run(state multistep.StateBag) multistep.StepAction { | |
if isoPathRaw, ok := state.GetOk("iso_path"); ok { | |
isoPath := isoPathRaw.(string) | |
+log.Printf("[DEBUG] isoPath=%v", isoPath) | |
ui.Message("Detaching ISO from CD-ROM device...") | |
devRe := regexp.MustCompile(`^ide\d:\d\.`) | |
@@ -55,13 +56,18 @@ func (s StepCleanVMX) Run(state multistep.StateBag) multistep.StepAction { | |
continue | |
} | |
+log.Printf("[DEBUG] match=%v", match) | |
filenameKey := match + "filename" | |
+log.Printf("[DEBUG] filenameKey=%v", filenameKey) | |
if filename, ok := vmxData[filenameKey]; ok { | |
+log.Printf("[DEBUG] filename=%v", filename) | |
if filename == isoPath { | |
// Change the CD-ROM device back to auto-detect to eject | |
vmxData[filenameKey] = "auto detect" | |
vmxData[match+"devicetype"] = "cdrom-raw" | |
} | |
+ } else { | |
+log.Printf("[DEBUG] vmxData=%v", vmxData) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment