Commit ef0a3f19 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #1604 from chilcote/add-sata-to-vmx-builder

updated step_clone_vmx.go to work with vmx files using sata
parents 58b5bafe d46187da
......@@ -37,8 +37,14 @@ func (s *StepCloneVMX) Run(state multistep.StateBag) multistep.StepAction {
return multistep.ActionHalt
}
diskName, ok := vmxData["scsi0:0.filename"]
if !ok {
var diskName string
_, scsi := vmxData["scsi0:0.filename"]
_, sata := vmxData["sata0:0.filename"]
if scsi {
diskName = vmxData["scsi0:0.filename"]
} else if sata {
diskName = vmxData["sata0:0.filename"]
} else {
err := fmt.Errorf("Root disk filename could not be found!")
state.Put("error", err)
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