Merge pull request #245 from extraordinaire/patch-1

builder/amazon/common: fix check for vpcid
This commit is contained in:
Mitchell Hashimoto 2013-08-05 08:39:23 -07:00
commit 7af60a88e9
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ func SSHAddress(e *ec2.EC2, port int) func(map[string]interface{}) (string, erro
i := state["instance"].(*ec2.Instance)
if i.DNSName != "" {
host = i.DNSName
} else if i.VpcId == "" {
} else if i.VpcId != "" {
host = i.PrivateIpAddress
}