From 80a84ae61fdef7ad838b133b5be88353523567d0 Mon Sep 17 00:00:00 2001 From: Samir Jha Date: Thu, 6 Jul 2023 07:33:16 -0400 Subject: [PATCH] Fixes #36221 - Allow removing products with empty URL repos (#10625) --- app/lib/actions/katello/alternate_content_source/update.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/actions/katello/alternate_content_source/update.rb b/app/lib/actions/katello/alternate_content_source/update.rb index ba987419acd..dda64f3ea50 100644 --- a/app/lib/actions/katello/alternate_content_source/update.rb +++ b/app/lib/actions/katello/alternate_content_source/update.rb @@ -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