summaryrefslogtreecommitdiff
path: root/lib/chef/resource/sudo.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-04-06 20:22:01 -0400
committerTim Smith <tsmith@chef.io>2018-04-06 20:22:01 -0400
commit733934d40b7f4e1008295351ce6f71bee15811d9 (patch)
tree6edaa2f5321e7b22e9c01df0282c1ecc19ad026b /lib/chef/resource/sudo.rb
parente9c34c593d4fcff1642bd572360cd0f83f0e2bb4 (diff)
downloadchef-733934d40b7f4e1008295351ce6f71bee15811d9.tar.gz
Modify the provides for all resources from cookbooks so chef winsprovides
Due to changes in chef-client 14 old cookbooks started winning and this causes lots of problems, especially for old incompatible resources. Chef client should always win here. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/sudo.rb')
-rw-r--r--lib/chef/resource/sudo.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/sudo.rb b/lib/chef/resource/sudo.rb
index 0eb3c562fd..95fb2d0282 100644
--- a/lib/chef/resource/sudo.rb
+++ b/lib/chef/resource/sudo.rb
@@ -24,8 +24,8 @@ require "chef/resource"
class Chef
class Resource
class Sudo < Chef::Resource
- resource_name "sudo"
- provides "sudo"
+ resource_name :sudo
+ provides(:sudo) { true }
description "Use the sudo resource to add or remove individual sudo entries using sudoers.d files."\
" Sudo version 1.7.2 or newer is required to use the sudo resource, as it relies on the"\