diff options
author | Chris Doherty <cdoherty@ooyala.com> | 2014-09-03 11:50:34 -0700 |
---|---|---|
committer | Chris Doherty <cdoherty@getchef.com> | 2014-09-10 16:34:15 -0700 |
commit | 3d4b96deb09366abf6f55a92d7c63a70de8f1147 (patch) | |
tree | 85ce0d5ddc5e2e8deccb0fa25751b024cb6e7ee5 /lib/chef/dsl | |
parent | da7dddf3d43fffbc38fd48296eb5d4d34467e22d (diff) | |
download | chef-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')
-rw-r--r-- | lib/chef/dsl/reboot_pending.rb | 2 |
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 |