summaryrefslogtreecommitdiff
path: root/lib/chef/knife/bootstrap.rb
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2019-05-10 11:55:06 -0400
committerGitHub <noreply@github.com>2019-05-10 11:55:06 -0400
commit4fb9ab9723e11da2a19e9e387fd5d851da82878c (patch)
treee827b89d23ec4bb14b4c30e3e1ed30ac3b4baf09 /lib/chef/knife/bootstrap.rb
parentecd9a77ad71b1fb26bf839a6e336245560f0c7fe (diff)
parentb51490520283de41775534388ad8c1002b970b67 (diff)
downloadchef-4fb9ab9723e11da2a19e9e387fd5d851da82878c.tar.gz
Merge pull request #8489 from MsysTechnologiesllc/VSingh/bootstrap-parse-max-wait-to-integer
Chef 15: bootstrap options --max-wait raises NoMethodError: undefined method /
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-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 81acb20daa..59d7e7007c 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_f 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