From 8b120455b41e498e29a11d91a912fc794a50b5c3 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/models/katello/module_stream.rb | 2 +- app/services/katello/pulp3/pulp_content_unit.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/katello/module_stream.rb b/app/models/katello/module_stream.rb index 3885bb4eacb..a1cf82e3105 100644 --- a/app/models/katello/module_stream.rb +++ b/app/models/katello/module_stream.rb @@ -30,7 +30,7 @@ class ModuleStream < Katello::Model complete_value: false, operators: ["=", "~"] - CONTENT_TYPE = "modulemd".freeze + CONTENT_TYPE = "module_stream".freeze MODULE_STREAM_DEFAULT_CONTENT_TYPE = "modulemd_defaults".freeze def self.default_sort diff --git a/app/services/katello/pulp3/pulp_content_unit.rb b/app/services/katello/pulp3/pulp_content_unit.rb index 6dfc3b894d8..f7760813e8b 100644 --- a/app/services/katello/pulp3/pulp_content_unit.rb +++ b/app/services/katello/pulp3/pulp_content_unit.rb @@ -25,6 +25,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 + ::Katello::ModuleStream::CONTENT_TYPE when ::Katello::Pulp3::DockerTag::PULPCORE_CONTENT_TYPE ::Katello::DockerTag::CONTENT_TYPE when ::Katello::Pulp3::DockerManifest::PULPCORE_CONTENT_TYPE