Merge pull request #2542 from mitchellh/b-generatedAddress

Fix case for ethernet.generatedAddress property lookup in VMX
pull/2547/head
Chris Bednarski 11 years ago
commit 611404d578

@ -39,7 +39,7 @@ func CommHost(config *SSHConfig) func(multistep.StateBag) (string, error) {
var ok bool
macAddress := ""
if macAddress, ok = vmxData["ethernet0.address"]; !ok || macAddress == "" {
if macAddress, ok = vmxData["ethernet0.generatedaddress"]; !ok || macAddress == "" {
if macAddress, ok = vmxData["ethernet0.generatedAddress"]; !ok || macAddress == "" {
return "", errors.New("couldn't find MAC address in VMX")
}
}

Loading…
Cancel
Save