app/lib/actions/pulp/consumer/generate_applicability.rb in katello-3.6.0.rc1 vs app/lib/actions/pulp/consumer/generate_applicability.rb in katello-3.6.0.rc2

- old
+ new

@@ -6,10 +6,14 @@ param :uuids, Array end def invoke_external_task if input[:uuids].length == 1 - pulp_resources.consumer.regenerate_applicability_by_id(input[:uuids].first) + begin + pulp_resources.consumer.regenerate_applicability_by_id(input[:uuids].first) + rescue RestClient::ResourceNotFound + Rails.logger.warn("Pulp consumer %s not found." % input[:uuids].first) + end else pulp_extensions.consumer.regenerate_applicability_by_ids(input[:uuids]) end end end