diff options
author | sawanoboly <sawanoboriyu@higanworks.com> | 2017-01-16 14:42:12 +0900 |
---|---|---|
committer | sawanoboly <sawanoboriyu@higanworks.com> | 2017-01-16 15:25:07 +0900 |
commit | 24d230b09a68c8b6857d060b398e779a23ba80bc (patch) | |
tree | 351802d51df66529fb7aaa60fd3fce8d2d78492c /lib/chef/knife/ssh.rb | |
parent | 4cdf66b25bb0b6670607bb0570f0ff82f5322b26 (diff) | |
download | chef-24d230b09a68c8b6857d060b398e779a23ba80bc.tar.gz |
pass true as 2nd args for Net::SSH.configuration_for by default.
Signed-off-by: SAWANOBORI Yukihiko <sawanoboriyu@higanworks.com>
Diffstat (limited to 'lib/chef/knife/ssh.rb')
-rw-r--r-- | lib/chef/knife/ssh.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb index f827aca280..53801afffd 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -232,7 +232,7 @@ class Chef # @param user [String] Optional username for this session. # @return [Hash<Symbol, Object>] def session_options(host, port, user = nil) - ssh_config = Net::SSH.configuration_for(host) + ssh_config = Net::SSH.configuration_for(host, true) {}.tap do |opts| # Chef::Config[:knife][:ssh_user] is parsed in #configure_user and written to config[:ssh_user] opts[:user] = user || config[:ssh_user] || ssh_config[:user] |