diff options
author | Salim Alam <salam@chef.io> | 2016-04-05 15:49:31 -0700 |
---|---|---|
committer | Salim Alam <salam@chef.io> | 2016-04-05 15:49:31 -0700 |
commit | cf61f3a9ab6e545735492d72cf1db4c36d6e6cd7 (patch) | |
tree | bc2a9968c7f634f14d92845ce3c4a5cde671d751 /lib/chef/knife | |
parent | 5d1a312bbbfc651d4ee4dce1e8fe923002c8aaea (diff) | |
download | chef-cf61f3a9ab6e545735492d72cf1db4c36d6e6cd7.tar.gz |
Add default timeout
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/ssh.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb index 31356b6f48..2bbcbfc79e 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -84,7 +84,8 @@ class Chef :short => "-t SECONDS", :long => "--ssh-timeout SECONDS", :description => "The ssh connection timeout", - :proc => Proc.new { |key| Chef::Config[:knife][:ssh_timeout] = key.strip.to_i } + :proc => Proc.new { |key| Chef::Config[:knife][:ssh_timeout] = key.strip.to_i }, + :default => 120 option :ssh_gateway, :short => "-G GATEWAY", |