Commit 470f8361 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #685 from veshi/master

builder/vmware: trivial bug fix in mechanism to clean installation ISOs for VMware build...
parents 32b480a2 d0387d1d
...@@ -55,12 +55,12 @@ func (s stepCleanVMX) Run(state multistep.StateBag) multistep.StepAction { ...@@ -55,12 +55,12 @@ func (s stepCleanVMX) Run(state multistep.StateBag) multistep.StepAction {
continue continue
} }
filenameKey := match + ".filename" filenameKey := match + "filename"
if filename, ok := vmxData[filenameKey]; ok { if filename, ok := vmxData[filenameKey]; ok {
if filename == isoPath { if filename == isoPath {
// Change the CD-ROM device back to auto-detect to eject // Change the CD-ROM device back to auto-detect to eject
vmxData[filenameKey] = "auto detect" vmxData[filenameKey] = "auto detect"
vmxData[match+".devicetype"] = "cdrom-raw" vmxData[match+"devicetype"] = "cdrom-raw"
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment