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 8286536180
commit fbe648d9e1

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
}