summaryrefslogtreecommitdiff
path: root/lib/chef/knife
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife')
-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