Skip to content

Commit

Permalink
changed the order of the target properties for ssh. This puts public …
Browse files Browse the repository at this point in the history
…dns first which is better suited for more secure environments
  • Loading branch information
Andres Silva committed Feb 6, 2015
1 parent d77a8b9 commit e914ef5
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 e914ef5

Please sign in to comment.