Merge pull request #1630 from routelastresort/master

builder/vmware: accept SATA drives on root VMX
This commit is contained in:
Mitchell Hashimoto 2014-10-28 08:27:08 -07:00
commit 51daea504e
1 changed files with 3 additions and 0 deletions

View File

@ -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)