From 6d13fd5a81cdfb6e0d46649e0980b95652839e06 Mon Sep 17 00:00:00 2001 From: Ian Ballou Date: Tue, 10 Oct 2023 16:19:20 +0000 Subject: [PATCH] Fixes #36820 - translate modulemd content counts --- app/services/katello/pulp3/pulp_content_unit.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/services/katello/pulp3/pulp_content_unit.rb b/app/services/katello/pulp3/pulp_content_unit.rb index 6dfc3b894d8..9ced38fce4e 100644 --- a/app/services/katello/pulp3/pulp_content_unit.rb +++ b/app/services/katello/pulp3/pulp_content_unit.rb @@ -7,6 +7,7 @@ class PulpContentUnit # Any class that extends this class should define: # Class#update_model + # rubocop:disable Metrics/MethodLength def self.katello_name_from_pulpcore_name(pulpcore_name, repo) # Counts shouldn't be needed for more than the default generic content unit type. if repo.generic? @@ -25,6 +26,8 @@ def self.katello_name_from_pulpcore_name(pulpcore_name, repo) ::Katello::PackageGroup::CONTENT_TYPE when ::Katello::Pulp3::Erratum::PULPCORE_CONTENT_TYPE ::Katello::Erratum::CONTENT_TYPE + when ::Katello::Pulp3::ModuleStream::PULPCORE_CONTENT_TYPE + 'module_stream' when ::Katello::Pulp3::DockerTag::PULPCORE_CONTENT_TYPE ::Katello::DockerTag::CONTENT_TYPE when ::Katello::Pulp3::DockerManifest::PULPCORE_CONTENT_TYPE @@ -41,6 +44,7 @@ def self.katello_name_from_pulpcore_name(pulpcore_name, repo) pulpcore_name end end + # rubocop:enable Metrics/MethodLength def self.content_api fail NotImplementedError