mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -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:
parent
8286536180
commit
fbe648d9e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue