Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Commit 988be1f

Browse files
author
R. Tyler Croy
committed
Merge pull request #355 from silvax/change-ssh-target-order
changed the order of the target properties for ssh.
2 parents 54bee34 + e914ef5 commit 988be1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vagrant-aws/action/read_ssh_info.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def read_ssh_info(aws, machine)
3333
ssh_host_attribute = machine.provider_config.
3434
get_region_config(machine.provider_config.region).ssh_host_attribute
3535
# default host attributes to try. NOTE: Order matters!
36-
ssh_attrs = [:public_ip_address, :dns_name, :private_ip_address]
36+
ssh_attrs = [:dns_name, :public_ip_address, :private_ip_address]
3737
ssh_attrs = (Array(ssh_host_attribute) + ssh_attrs).uniq if ssh_host_attribute
3838
# try each attribute, get out on first value
3939
host_value = nil

0 commit comments

Comments
 (0)