Commit fbe648d9 authored by Andrei Serdeliuc's avatar Andrei Serdeliuc

fix check for vpcid

check for VpcId was incorrectly checking if VPC is empty, instead of not empty.
parent 82865361
......@@ -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