fix check for vpcid

check for VpcId was incorrectly checking if VPC is empty, instead of not empty.
pull/919/head
Andrei Serdeliuc 13 years ago
parent 8286536180
commit fbe648d9e1

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