summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2016-04-04 09:48:52 -0700
committerSalim Alam <salam@chef.io>2016-04-04 09:48:52 -0700
commitfd09daab9df9a3b9bde05b0e70abab0dd861ef01 (patch)
treee9eeb5464c8ac00729f0a4c45b4b85d9b399865c
parent6689faacd533e3ab5c3fd26ae5137fd0e881d0a3 (diff)
parent87a3f603ca43eab115261981d85a90f9ab845d90 (diff)
downloadchef-fd09daab9df9a3b9bde05b0e70abab0dd861ef01.tar.gz
Merge pull request #4787 from chef/salam/ssh-fix
Convert timeout config to integer
-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",