summaryrefslogtreecommitdiff
path: root/lib/chef/provider/reboot.rb
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@getchef.com>2014-09-09 14:45:59 -0700
committerChris Doherty <cdoherty@getchef.com>2014-09-10 16:34:31 -0700
commitb35e001755d9eaa78092f937dfa94002ef9ec349 (patch)
tree9deb8a2fb2f2b72f7147fe8d9afd02f886b31b40 /lib/chef/provider/reboot.rb
parent6d3aa8327224e25d6011b46b8873cab5e7a56031 (diff)
downloadchef-b35e001755d9eaa78092f937dfa94002ef9ec349.tar.gz
Re-implement immediate reboot using throw/catch, so all the end-of-run
tasks (e.g. report handlers) still get to run.
Diffstat (limited to 'lib/chef/provider/reboot.rb')
-rw-r--r--lib/chef/provider/reboot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/reboot.rb b/lib/chef/provider/reboot.rb
index a8abcb3b57..f66b42c0e8 100644
--- a/lib/chef/provider/reboot.rb
+++ b/lib/chef/provider/reboot.rb
@@ -54,7 +54,7 @@ class Chef
converge_by("rebooting the system immediately") do
Chef::Log.warn "Rebooting system immediately, requested by '#{@new_resource.name}'"
request_reboot
- Chef::Platform::Rebooter.reboot!(node)
+ throw :interrupt_run_and_reboot
end
end