mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-28 02:34:02 -04:00
fix check for vpcid
check for VpcId was incorrectly checking if VPC is empty, instead of not empty.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user