fix check for vpcid

check for VpcId was incorrectly checking if VPC is empty, instead of not empty.
This commit is contained in:
Andrei Serdeliuc 2013-08-05 16:19:05 +01:00
parent 3bf88e2dd7
commit 80db9efef5

View File

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