summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-08-24 21:26:00 -0700
committerTim Smith <tsmith@chef.io>2018-08-24 21:26:00 -0700
commit1e6b325b69ecee94ca8f1bba1700a03932510395 (patch)
treec5b55dec926ec05f3f8e889ca7bc8bdc115328c7
parentfb4ceb1b44c2f2dfbece64f90278cf3a1ff35033 (diff)
downloadchef-1e6b325b69ecee94ca8f1bba1700a03932510395.tar.gz
Resolve new_resource error with cron_d resourcecrond_error
new_resource.cookbook needed to be cookbook inside after_created Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/cron_d.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/cron_d.rb b/lib/chef/resource/cron_d.rb
index ba78008ab8..2125fbffd3 100644
--- a/lib/chef/resource/cron_d.rb
+++ b/lib/chef/resource/cron_d.rb
@@ -160,7 +160,7 @@ class Chef
# warn if someone passes the deprecated cookbook property
def after_created
- raise ArgumentError, "The 'cookbook' property for the cron_d resource is no longer supported now that this resource ships in Chef itself." if new_resource.cookbook
+ raise ArgumentError, "The 'cookbook' property for the cron_d resource is no longer supported now that this resource ships in Chef itself." if cookbook
end
action :create do