summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/resource/sudo.rb5
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"