diff options
| author | Tim Smith <tsmith84@gmail.com> | 2020-08-07 10:48:39 -0700 |
|---|---|---|
| committer | Tim Smith <tsmith84@gmail.com> | 2020-08-07 10:48:39 -0700 |
| commit | be13cbd6bbdf82a6419bd2612f10db698a963d3d (patch) | |
| tree | 8d318b5675ef6ba0198bb57442b870bee1daea84 /lib | |
| parent | 0cf94ee19178280f58aa286f7d6ee5ef5bf9c0a7 (diff) | |
| download | chef-be13cbd6bbdf82a6419bd2612f10db698a963d3d.tar.gz | |
chef_client_systemd_timer: Fix failures in the :remove action
Get the actual systemd action right. Add a kitchen test for this as well.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/chef/resource/chef_client_systemd_timer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/chef_client_systemd_timer.rb b/lib/chef/resource/chef_client_systemd_timer.rb index 4ca32a08cc..fa59798009 100644 --- a/lib/chef/resource/chef_client_systemd_timer.rb +++ b/lib/chef/resource/chef_client_systemd_timer.rb @@ -112,11 +112,11 @@ class Chef action :remove do systemd_unit "#{new_resource.job_name}.service" do - action :remove + action :delete end systemd_unit "#{new_resource.job_name}.timer" do - action :remove + action :delete end end |
