summaryrefslogtreecommitdiff
path: root/lib/chef/provider/reboot.rb
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@getchef.com>2014-09-03 14:11:29 -0700
committerChris Doherty <cdoherty@getchef.com>2014-09-10 16:34:17 -0700
commit32f7f6526e07053ba972129883eb016caf3ca731 (patch)
tree60488e59d5371fec44de3f3fe1aa81e1215133c0 /lib/chef/provider/reboot.rb
parent494d2b5c32c7295fc4f0c95b0ca01af65f7c80c3 (diff)
downloadchef-32f7f6526e07053ba972129883eb016caf3ca731.tar.gz
'timeout' -> 'delay_mins'; add a run_context() shim for RebootPending.
Diffstat (limited to 'lib/chef/provider/reboot.rb')
-rw-r--r--lib/chef/provider/reboot.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/reboot.rb b/lib/chef/provider/reboot.rb
index 3cfe576067..1890c4e8bc 100644
--- a/lib/chef/provider/reboot.rb
+++ b/lib/chef/provider/reboot.rb
@@ -35,7 +35,7 @@ class Chef
def load_current_resource
@current_resource ||= Chef::Resource::Reboot.new(@new_resource.name)
@current_resource.reason(@new_resource.reason)
- @current_resource.timeout(@new_resource.timeout)
+ @current_resource.delay_mins(@new_resource.delay_mins)
@current_resource.timestamp(@new_resource.timestamp)
@current_resource
end
@@ -43,8 +43,8 @@ class Chef
def action_request
Chef::Log.warn "Reboot requested:'#{@new_resource.name}'"
node.run_context.request_reboot(
- :reboot_timeout => @new_resource.timeout,
- :reboot_reason => @new_resource.reason,
+ :delay_mins => @new_resource.delay_mins,
+ :reason => @new_resource.reason,
:timestamp => Time.now,
:requested_by => @new_resource.name
)