Merge pull request #245 from extraordinaire/patch-1

builder/amazon/common: fix check for vpcid
pull/919/head
Mitchell Hashimoto 13 years ago
commit 7af60a88e9

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

Loading…
Cancel
Save