Skip to content

Commit

Permalink
Merge pull request mitchellh#355 from silvax/change-ssh-target-order
Browse files Browse the repository at this point in the history
changed the order of the target properties for ssh.
  • Loading branch information
R. Tyler Croy committed Dec 8, 2015
2 parents 54bee34 + e914ef5 commit 988be1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-aws/action/read_ssh_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def read_ssh_info(aws, machine)
ssh_host_attribute = machine.provider_config.
get_region_config(machine.provider_config.region).ssh_host_attribute
# default host attributes to try. NOTE: Order matters!
ssh_attrs = [:public_ip_address, :dns_name, :private_ip_address]
ssh_attrs = [:dns_name, :public_ip_address, :private_ip_address]
ssh_attrs = (Array(ssh_host_attribute) + ssh_attrs).uniq if ssh_host_attribute
# try each attribute, get out on first value
host_value = nil
Expand Down

0 comments on commit 988be1f

Please sign in to comment.