diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-13 15:27:58 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-15 11:06:29 -0700 |
commit | aef5db08b4b236f0751013d8ee244f7fbea41475 (patch) | |
tree | a21e36c6130612bac4f1d816e3ddc824708fe828 | |
parent | d88972f463fb7251872cece16d5eedfbc2faa315 (diff) | |
download | chef-aef5db08b4b236f0751013d8ee244f7fbea41475.tar.gz |
Add compatibility action for removesudo
This went out in sudo 5.3.1
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/sudo.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/resource/sudo.rb b/lib/chef/resource/sudo.rb index 202e904a35..f1e517a275 100644 --- a/lib/chef/resource/sudo.rb +++ b/lib/chef/resource/sudo.rb @@ -187,6 +187,11 @@ class Chef action_create end + action :remove do + Chef::Log.warn("The sudo :remove action has been renamed :delete. Please update your cookbook code for the new action") + action_delete + end + # Removes a user from the sudoers group action :delete do description "Remove a sudoers config from the sudoers.d directory" |