Commit 86cc0a8b authored by Eric Tucker's avatar Eric Tucker

Execute clean before makecache

parent 9c36fc44
......@@ -46,8 +46,8 @@ action :create do
mode new_resource.mode
variables(:config => new_resource)
if new_resource.make_cache
notifies :run, "execute[yum-makecache-#{new_resource.repositoryid}]", :immediately
notifies :run, "execute[yum clean #{new_resource.repositoryid}]", :immediately
notifies :run, "execute[yum-makecache-#{new_resource.repositoryid}]", :immediately
notifies :create, "ruby_block[yum-cache-reload-#{new_resource.repositoryid}]", :immediately
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment