diff --git a/builder/vmware/step_clean_vmx.go b/builder/vmware/step_clean_vmx.go index 3aec60f7e..b6519858b 100644 --- a/builder/vmware/step_clean_vmx.go +++ b/builder/vmware/step_clean_vmx.go @@ -60,7 +60,7 @@ func (s stepCleanVMX) Run(state map[string]interface{}) multistep.StepAction { 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" } } }