From 704774b3d05273b9fdfbc45cf464a6f1f00c4d10 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Sun, 19 Jul 2015 01:33:52 -0700 Subject: Correct Windows reboot command to delay in minutes Correct the command used to reboot Windows machines so that it converts a given delay_mins option to the appropriate number of seconds. --- lib/chef/platform/rebooter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/platform') diff --git a/lib/chef/platform/rebooter.rb b/lib/chef/platform/rebooter.rb index b46f0e394c..b78ac38f0c 100644 --- a/lib/chef/platform/rebooter.rb +++ b/lib/chef/platform/rebooter.rb @@ -32,7 +32,7 @@ class Chef cmd = if Chef::Platform.windows? # should this do /f as well? do we then need a minimum delay to let apps quit? - "shutdown /r /t #{reboot_info[:delay_mins]} /c \"#{reboot_info[:reason]}\"" + "shutdown /r /t #{reboot_info[:delay_mins]*60} /c \"#{reboot_info[:reason]}\"" else # probably Linux-only. "shutdown -r +#{reboot_info[:delay_mins]} \"#{reboot_info[:reason]}\"" -- cgit v1.2.1