Merge pull request #2542 from mitchellh/b-generatedAddress

Fix case for ethernet.generatedAddress property lookup in VMX
This commit is contained in:
Chris Bednarski 2015-08-01 16:19:45 -07:00
commit 611404d578
1 changed files with 1 additions and 1 deletions

View File

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