builder/vmware: accept SATA drives on root VMX

This commit is contained in:
Mitchell Hashimoto 2014-10-27 16:53:25 -07:00
parent ef0a3f1952
commit 145056185c
1 changed files with 5 additions and 5 deletions

View File

@ -38,13 +38,13 @@ func (s *StepCloneVMX) Run(state multistep.StateBag) multistep.StepAction {
}
var diskName string
_, scsi := vmxData["scsi0:0.filename"]
_, sata := vmxData["sata0:0.filename"]
if scsi {
if _, ok := vmxData["scsi0:0.filename"]; ok {
diskName = vmxData["scsi0:0.filename"]
} else if sata {
}
if _, ok := vmxData["sata0:0.filename"]; ok {
diskName = vmxData["sata0:0.filename"]
} else {
}
if diskName == "" {
err := fmt.Errorf("Root disk filename could not be found!")
state.Put("error", err)
return multistep.ActionHalt