summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2019-05-08 23:09:16 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2019-05-08 23:09:16 +0530
commitb51490520283de41775534388ad8c1002b970b67 (patch)
tree77ea1ad32ed80c83bc07ec814eca508f9c696d6d
parent6fe56e8c6482b9ed8411202765ff8fb7c5e0ef4c (diff)
downloadchef-b51490520283de41775534388ad8c1002b970b67.tar.gz
Use #to_f instead of #to_i for the max_wait option.
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 4d4ee6ef10..e56704f7b7 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).to_i 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