From 87a3f603ca43eab115261981d85a90f9ab845d90 Mon Sep 17 00:00:00 2001 From: Salim Alam Date: Fri, 1 Apr 2016 15:26:14 -0700 Subject: Convert timeout config to integer --- lib/chef/knife/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- cgit v1.2.1