Commit d46187da authored by Joseph Chilcote's avatar Joseph Chilcote

updated step_clone_vmx.go to work with vmx files using sata

parent 6ca0a2b3
......@@ -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