summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",