summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-03 11:15:51 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-03 11:15:51 -0700
commit335f0d48cb85451556674735fb5b22100d9adec3 (patch)
treefc62fc18445d8c81c68844221b35cd25110101d7
parentb8bbd101086ab105768095242ba60c8f44d308cb (diff)
downloadchef-client_fixes.tar.gz
chef_client_cron: cleanup the appropriate cron jobclient_fixes
This makes it so we cleanup the right cron job on Solaris / AIX systems that don't support cron_d Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/chef_client_cron.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/chef_client_cron.rb b/lib/chef/resource/chef_client_cron.rb
index b9ed50c48e..7a3f7992fc 100644
--- a/lib/chef/resource/chef_client_cron.rb
+++ b/lib/chef/resource/chef_client_cron.rb
@@ -163,7 +163,7 @@ class Chef
end
action :remove do
- cron_d new_resource.job_name do
+ declare_resource(cron_resource_type, new_resource.job_name) do
action :delete
end
end