Skip to content

Commit

Permalink
Fixes #36221 - Allow removing products with empty URL repos (#10625)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 authored Jul 6, 2023
1 parent 74d8bd6 commit 80a84ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/actions/katello/alternate_content_source/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def update_acss(acs, smart_proxies_to_update, products_to_associate, products_to
products_to_disassociate.each do |product|
product.repositories.library.with_type(acs.content_type).each do |repo|
smart_proxy_acs = ::Katello::SmartProxyAlternateContentSource.find_by(alternate_content_source_id: acs.id, smart_proxy_id: smart_proxy.id, repository_id: repo.id)
plan_action(Pulp3::Orchestration::AlternateContentSource::Delete, smart_proxy_acs)
plan_action(Pulp3::Orchestration::AlternateContentSource::Delete, smart_proxy_acs) if smart_proxy_acs.present?
end
end
end
Expand Down

0 comments on commit 80a84ae

Please sign in to comment.