From ef67f3790036eb1ba297a6d7fa1a59e77a9dc033 Mon Sep 17 00:00:00 2001 From: kasif Date: Fri, 3 Dec 2021 16:03:57 +0530 Subject: fix knife bootstrap issue when max wait is specified Signed-off-by: kasif --- knife/lib/chef/knife/bootstrap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'knife/lib/chef/knife/bootstrap.rb') diff --git a/knife/lib/chef/knife/bootstrap.rb b/knife/lib/chef/knife/bootstrap.rb index d6687d8161..8909abd45b 100644 --- a/knife/lib/chef/knife/bootstrap.rb +++ b/knife/lib/chef/knife/bootstrap.rb @@ -930,7 +930,7 @@ class Chef opts[:logger] = Chef::Log opts[:password] = config[:connection_password] if config.key?(:connection_password) opts[:user] = user if user - opts[:max_wait_until_ready] = config[:max_wait].to_f unless config[:max_wait].nil? + opts[:max_wait_until_ready] = config[:max_wait].to_i unless config[: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 -- cgit v1.2.1