Merge pull request #685 from veshi/master

builder/vmware: trivial bug fix in mechanism to clean installation ISOs for VMware build...
This commit is contained in:
Mitchell Hashimoto 2013-12-06 17:55:11 -08:00
commit 470f8361ad
1 changed files with 2 additions and 2 deletions

View File

@ -55,12 +55,12 @@ func (s stepCleanVMX) Run(state multistep.StateBag) multistep.StepAction {
continue
}
filenameKey := match + ".filename"
filenameKey := match + "filename"
if filename, ok := vmxData[filenameKey]; ok {
if filename == isoPath {
// Change the CD-ROM device back to auto-detect to eject
vmxData[filenameKey] = "auto detect"
vmxData[match+".devicetype"] = "cdrom-raw"
vmxData[match+"devicetype"] = "cdrom-raw"
}
}
}