GitLab upgraded to 13.7.4-ee.0 - changelog: https://gitlab.com/gitlab-org/gitlab/blob/master/CHANGELOG-EE.md

Commit 6a582397 authored by Sean OMeara's avatar Sean OMeara

[COOK-3275] LWRP repository.rb :add method fails to create yum repo in some...

[COOK-3275] LWRP repository.rb :add method fails to create yum repo in some cases which causes :update to fail in Amazon rehl
parent 04423d63
......@@ -68,7 +68,7 @@ action :update do
else
Chef::Log.error "Repo /etc/yum.repos.d/#{new_resource.repo_name}.repo does not exist, you must create it first"
end
if repos[new_resource.repo_name]['enabled'].to_i != new_resource.enabled
if !repos.has_key?(new_resource.repo_name) || repos[new_resource.repo_name]['enabled'].to_i != new_resource.enabled
Chef::Log.info "Updating #{new_resource.repo_name} repository in /etc/yum.repos.d/#{new_resource.repo_name}.repo (setting enabled=#{new_resource.enabled})"
repo_config
else
......
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