fix check for vpcid

check for VpcId was incorrectly checking if VPC is empty, instead of not empty.
pull/245/head
Andrei Serdeliuc 13 years ago
parent 3bf88e2dd7
commit 80db9efef5

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