mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-25 01:04:00 -04:00
Fixed case sensitive issue with VMX entries not being overwritten
This commit is contained in:
Regular → Executable
+2
-2
@@ -51,8 +51,8 @@ func (s StepCleanVMX) Run(state multistep.StateBag) multistep.StepAction {
|
||||
|
||||
ui.Message("Detaching ISO from CD-ROM device...")
|
||||
|
||||
vmxData[ide+"devicetype"] = "cdrom-raw"
|
||||
vmxData[ide+"filename"] = "auto detect"
|
||||
vmxData[ide+"deviceType"] = "cdrom-raw"
|
||||
vmxData[ide+"fileName"] = "auto detect"
|
||||
}
|
||||
|
||||
ui.Message("Disabling VNC server...")
|
||||
|
||||
Regular → Executable
+6
-6
@@ -38,14 +38,14 @@ func (s *StepCloneVMX) Run(state multistep.StateBag) multistep.StepAction {
|
||||
}
|
||||
|
||||
var diskName string
|
||||
if _, ok := vmxData["scsi0:0.filename"]; ok {
|
||||
diskName = vmxData["scsi0:0.filename"]
|
||||
if _, ok := vmxData["scsi0:0.fileName"]; ok {
|
||||
diskName = vmxData["scsi0:0.fileName"]
|
||||
}
|
||||
if _, ok := vmxData["sata0:0.filename"]; ok {
|
||||
diskName = vmxData["sata0:0.filename"]
|
||||
if _, ok := vmxData["sata0:0.fileName"]; ok {
|
||||
diskName = vmxData["sata0:0.fileName"]
|
||||
}
|
||||
if _, ok := vmxData["ide0:0.filename"]; ok {
|
||||
diskName = vmxData["ide0:0.filename"]
|
||||
if _, ok := vmxData["ide0:0.fileName"]; ok {
|
||||
diskName = vmxData["ide0:0.fileName"]
|
||||
}
|
||||
if diskName == "" {
|
||||
err := fmt.Errorf("Root disk filename could not be found!")
|
||||
|
||||
Reference in New Issue
Block a user