Commit 7af60a88 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #245 from extraordinaire/patch-1

builder/amazon/common: fix check for vpcid
parents 82865361 fbe648d9
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment