lib/chef_metal/transport/ssh.rb in chef-metal-0.11.beta.5 vs lib/chef_metal/transport/ssh.rb in chef-metal-0.11.beta.6

- old
+ new

@@ -157,10 +157,10 @@ ssh_start_opts = { timeout:10 }.merge(ssh_options) ssh_start_opts[:port] = gw_port || 22 Chef::Log.debug("Opening SSH gateway to #{gw_user}@#{gw_host} with options #{ssh_start_opts.inspect}") begin - Net::SSH::Gateway.new(gw_host, gw_user) + Net::SSH::Gateway.new(gw_host, gw_user, ssh_start_opts) rescue Errno::ETIMEDOUT Chef::Log.debug("Timed out connecting to gateway: #{$!}") raise InitialConnectTimeout.new($!) end end