summaryrefslogtreecommitdiff
path: root/lib/chef/resource/yum_repository.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/yum_repository.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/yum_repository.rb')
-rw-r--r--lib/chef/resource/yum_repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/yum_repository.rb b/lib/chef/resource/yum_repository.rb
index 4c53fe579d..8d88f12ed0 100644
--- a/lib/chef/resource/yum_repository.rb
+++ b/lib/chef/resource/yum_repository.rb
@@ -22,7 +22,7 @@ class Chef
class Resource
class YumRepository < Chef::Resource
resource_name :yum_repository
- provides :yum_repository
+ provides(:yum_repository) { true }
description "Use the yum_repository resource to manage a Yum repository configuration"\
" file located at /etc/yum.repos.d/repositoryid.repo on the local machine."\