Commit b545cca9 authored by Tim Smith's avatar Tim Smith

Resolve rubocop warnings

parent b1aa0361
...@@ -36,7 +36,7 @@ action :create do ...@@ -36,7 +36,7 @@ action :create do
variables(config: new_resource) variables(config: new_resource)
if new_resource.make_cache if new_resource.make_cache
notifies :run, "execute[yum clean #{new_resource.repositoryid}]", :immediately notifies :run, "execute[yum clean #{new_resource.repositoryid}]", :immediately
notifies :run, "execute[yum-makecache]", :immediately notifies :run, 'execute[yum-makecache]', :immediately
notifies :create, "ruby_block[yum-cache-reload-#{new_resource.repositoryid}]", :immediately notifies :create, "ruby_block[yum-cache-reload-#{new_resource.repositoryid}]", :immediately
end end
end end
...@@ -47,7 +47,7 @@ action :create do ...@@ -47,7 +47,7 @@ action :create do
end end
# get the metadata for this repo only # get the metadata for this repo only
execute "yum-makecache" do execute 'yum-makecache' do
command "yum -q -y makecache --disablerepo=* --enablerepo=#{new_resource.repositoryid}" command "yum -q -y makecache --disablerepo=* --enablerepo=#{new_resource.repositoryid}"
action :nothing action :nothing
only_if { new_resource.enabled } only_if { new_resource.enabled }
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