Commit 14505618 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: accept SATA drives on root VMX

parent ef0a3f19
...@@ -38,13 +38,13 @@ func (s *StepCloneVMX) Run(state multistep.StateBag) multistep.StepAction { ...@@ -38,13 +38,13 @@ func (s *StepCloneVMX) Run(state multistep.StateBag) multistep.StepAction {
} }
var diskName string var diskName string
_, scsi := vmxData["scsi0:0.filename"] if _, ok := vmxData["scsi0:0.filename"]; ok {
_, sata := vmxData["sata0:0.filename"]
if scsi {
diskName = vmxData["scsi0:0.filename"] diskName = vmxData["scsi0:0.filename"]
} else if sata { }
if _, ok := vmxData["sata0:0.filename"]; ok {
diskName = vmxData["sata0:0.filename"] diskName = vmxData["sata0:0.filename"]
} else { }
if diskName == "" {
err := fmt.Errorf("Root disk filename could not be found!") err := fmt.Errorf("Root disk filename could not be found!")
state.Put("error", err) state.Put("error", err)
return multistep.ActionHalt return multistep.ActionHalt
......
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