Trivial bug fix in mechanism to clean installation ISOs for VMware builder
The resolution of Bug #608 still had issues. This change removes a superfluous period. Testing Done: - built packer with my change - built VMware VMs and saw that the vmx file had the expected changes.
This commit is contained in:
parent
23c13e29b1
commit
a2de093b72
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user