From 80db9efef563bde3f1ae6c62abc70b79f6baae61 Mon Sep 17 00:00:00 2001 From: Andrei Serdeliuc Date: Mon, 5 Aug 2013 16:19:05 +0100 Subject: [PATCH] fix check for vpcid check for VpcId was incorrectly checking if VPC is empty, instead of not empty. --- builder/amazon/common/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/common/ssh.go b/builder/amazon/common/ssh.go index 562c95658..eb87767cb 100644 --- a/builder/amazon/common/ssh.go +++ b/builder/amazon/common/ssh.go @@ -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 }