diff options
author | Tim Smith <tsmith@chef.io> | 2016-09-19 14:03:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-19 14:03:36 -0700 |
commit | bd54eb3035035aac4c789473304952c3937830bc (patch) | |
tree | 6ef9910cb8a118d068bea0125a2dde191dbc74d6 /lib/chef/resource | |
parent | ed21f8cff3d816394fb50258e1ea27ac2fc89a5a (diff) | |
download | chef-bd54eb3035035aac4c789473304952c3937830bc.tar.gz |
Fix makecache action name in yum_repositorymakecache
Our allowed action in the resource doesn't match the action name in the provider.
makecache is the correct action not make_cache:
https://github.com/chef-cookbooks/yum/blob/master/providers/repository.rb#L100
Signed-off-by: Tim Smith tsmith@chef.io
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/yum_repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/yum_repository.rb b/lib/chef/resource/yum_repository.rb index 3633f4421b..2989f1bf87 100644 --- a/lib/chef/resource/yum_repository.rb +++ b/lib/chef/resource/yum_repository.rb @@ -69,7 +69,7 @@ class Chef property :options, Hash default_action :create - allowed_actions :create, :remove, :make_cache, :add, :delete + allowed_actions :create, :remove, :makecache, :add, :delete # provide compatibility with the yum cookbook < 3.0 properties alias_method :url, :baseurl |