summaryrefslogtreecommitdiff
path: root/lib/chef/knife/ssh.rb
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2016-04-01 15:26:14 -0700
committerSalim Alam <salam@chef.io>2016-04-01 16:45:26 -0700
commit87a3f603ca43eab115261981d85a90f9ab845d90 (patch)
treee9eeb5464c8ac00729f0a4c45b4b85d9b399865c /lib/chef/knife/ssh.rb
parent6689faacd533e3ab5c3fd26ae5137fd0e881d0a3 (diff)
downloadchef-87a3f603ca43eab115261981d85a90f9ab845d90.tar.gz
Convert timeout config to integersalam/ssh-fix
Diffstat (limited to 'lib/chef/knife/ssh.rb')
-rw-r--r--lib/chef/knife/ssh.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb
index a3ed8eb3d0..31356b6f48 100644
--- a/lib/chef/knife/ssh.rb
+++ b/lib/chef/knife/ssh.rb
@@ -84,7 +84,7 @@ 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 }
+ :proc => Proc.new { |key| Chef::Config[:knife][:ssh_timeout] = key.strip.to_i }
option :ssh_gateway,
:short => "-G GATEWAY",