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
1 changed files with 1 additions and 1 deletions
builder/amazon/common

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
}