Merge pull request #1630 from routelastresort/master
builder/vmware: accept SATA drives on root VMX
This commit is contained in:
commit
51daea504e
|
@ -44,6 +44,9 @@ func (s *StepCloneVMX) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
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 {
|
||||||
|
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!")
|
||||||
state.Put("error", err)
|
state.Put("error", err)
|
||||||
|
|
Loading…
Reference in New Issue