summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2019-05-08 14:53:06 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2019-05-08 15:00:51 +0530
commit6fe56e8c6482b9ed8411202765ff8fb7c5e0ef4c (patch)
tree5df107a0dbf3061a3d6b8455998dc935ba4c5c2d
parenta0a0b02ce7d4a96fdaffa1762a6669afd6b60858 (diff)
downloadchef-6fe56e8c6482b9ed8411202765ff8fb7c5e0ef4c.tar.gz
Fixes for bootstrap ssh connection option max-wait
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--lib/chef/knife/bootstrap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 6f6b31f2ec..4d4ee6ef10 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -813,7 +813,7 @@ class Chef
# We do not store password in Chef::Config, so only use CLI `config` here
opts[:password] = config[:connection_password] if config.key?(:connection_password)
opts[:user] = user if user
- opts[:max_wait_until_ready] = config_value(:max_wait) unless config_value(:max_wait).nil?
+ opts[:max_wait_until_ready] = config_value(:max_wait).to_i unless config_value(:max_wait).nil?
# TODO - when would we need to provide rdp_port vs port? Or are they not mutually exclusive?
opts[:port] = port if port
end