Commit d0387d1d authored by adrian kalaveshi's avatar adrian kalaveshi

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.
parent 32b480a2
...@@ -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