summaryrefslogtreecommitdiff
path: root/lib/chef/dsl/reboot_pending.rb
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@ooyala.com>2014-09-03 11:50:34 -0700
committerChris Doherty <cdoherty@getchef.com>2014-09-10 16:34:15 -0700
commit3d4b96deb09366abf6f55a92d7c63a70de8f1147 (patch)
tree85ce0d5ddc5e2e8deccb0fa25751b024cb6e7ee5 /lib/chef/dsl/reboot_pending.rb
parentda7dddf3d43fffbc38fd48296eb5d4d34467e22d (diff)
downloadchef-3d4b96deb09366abf6f55a92d7c63a70de8f1147.tar.gz
Move reboot data into run_context. (Dan D. confirms his prior opinions from https://github.com/opscode/chef/pull/1279#discussion-diff-9964101.)
Diffstat (limited to 'lib/chef/dsl/reboot_pending.rb')
-rw-r--r--lib/chef/dsl/reboot_pending.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/dsl/reboot_pending.rb b/lib/chef/dsl/reboot_pending.rb
index 31e57bf5e6..5255cf1166 100644
--- a/lib/chef/dsl/reboot_pending.rb
+++ b/lib/chef/dsl/reboot_pending.rb
@@ -30,7 +30,7 @@ class Chef
# Note that we will silently miss any other platform-specific reboot notices besides Windows+Ubuntu.
def reboot_pending?
- if node.run_state[:reboot_requested]
+ if node.run_context.reboot_requested?
true
elsif platform?("windows")
# PendingFileRenameOperations contains pairs (REG_MULTI_SZ) of filenames that cannot be updated