Commit 5e1ea753 authored by Marc Siegfriedt's avatar Marc Siegfriedt

Fixed case sensitive issue with VMX entries not being overwritten

parent aa954c94
...@@ -51,8 +51,8 @@ func (s StepCleanVMX) Run(state multistep.StateBag) multistep.StepAction { ...@@ -51,8 +51,8 @@ func (s StepCleanVMX) Run(state multistep.StateBag) multistep.StepAction {
ui.Message("Detaching ISO from CD-ROM device...") ui.Message("Detaching ISO from CD-ROM device...")
vmxData[ide+"devicetype"] = "cdrom-raw" vmxData[ide+"deviceType"] = "cdrom-raw"
vmxData[ide+"filename"] = "auto detect" vmxData[ide+"fileName"] = "auto detect"
} }
ui.Message("Disabling VNC server...") ui.Message("Disabling VNC server...")
......
...@@ -38,14 +38,14 @@ func (s *StepCloneVMX) Run(state multistep.StateBag) multistep.StepAction { ...@@ -38,14 +38,14 @@ func (s *StepCloneVMX) Run(state multistep.StateBag) multistep.StepAction {
} }
var diskName string var diskName string
if _, ok := vmxData["scsi0:0.filename"]; ok { if _, ok := vmxData["scsi0:0.fileName"]; ok {
diskName = vmxData["scsi0:0.filename"] diskName = vmxData["scsi0:0.fileName"]
} }
if _, ok := vmxData["sata0:0.filename"]; ok { if _, ok := vmxData["sata0:0.fileName"]; ok {
diskName = vmxData["sata0:0.filename"] diskName = vmxData["sata0:0.fileName"]
} }
if _, ok := vmxData["ide0:0.filename"]; ok { if _, ok := vmxData["ide0:0.fileName"]; ok {
diskName = vmxData["ide0:0.filename"] diskName = vmxData["ide0:0.fileName"]
} }
if diskName == "" { if diskName == "" {
err := fmt.Errorf("Root disk filename could not be found!") err := fmt.Errorf("Root disk filename could not be found!")
......
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