diff options
author | Salim Alam <salam@chef.io> | 2016-04-05 14:55:30 -0700 |
---|---|---|
committer | Salim Alam <salam@chef.io> | 2016-04-05 14:55:30 -0700 |
commit | e024c7a6fb90c2084086b0bd97d3f40cfb80a324 (patch) | |
tree | 2e0e9551482cd6bf268ae41eeaba763669e44313 | |
parent | 3a0c531c013fac6b8f0a712066e5172cf494b133 (diff) | |
download | chef-salam/knife-ssh-tweak.tar.gz |
Add default timeoutsalam/knife-ssh-tweak
-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", |