From d0387d1d3a9a270b2a602cf4b7e96b7ea3d0ca5c Mon Sep 17 00:00:00 2001 From: adrian kalaveshi Date: Thu, 5 Dec 2013 21:36:34 +0000 Subject: [PATCH] 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. --- builder/vmware/step_clean_vmx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/vmware/step_clean_vmx.go b/builder/vmware/step_clean_vmx.go index c8a66c5e0..a40855d41 100644 --- a/builder/vmware/step_clean_vmx.go +++ b/builder/vmware/step_clean_vmx.go @@ -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" } } }