builder/vmware: accept SATA drives on root VMX

This commit is contained in:
John Deatherage 2014-10-28 00:58:46 -07:00
parent 4406c20af1
commit 68fbf5c21a
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 {
diskName = vmxData["sata0:0.filename"]
}
if _, ok := vmxData["ide0:0.filename"]; ok {
diskName = vmxData["ide0:0.filename"]
}
if diskName == "" {
err := fmt.Errorf("Root disk filename could not be found!")
state.Put("error", err)