From 06f7932e0bdc66e26d8d593e64fc5747812e4329 Mon Sep 17 00:00:00 2001 From: Stan Cheng Date: Wed, 3 Jun 2015 13:31:10 -0700 Subject: [PATCH] ensuring that the yum clean updates comes before the make cache --- providers/repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/repository.rb b/providers/repository.rb index aa7c198..9999060 100644 --- a/providers/repository.rb +++ b/providers/repository.rb @@ -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 -- GitLab