Skip to content

Commit

Permalink
Fixes #36820 - translate modulemd content counts
Browse files Browse the repository at this point in the history
  • Loading branch information
ianballou committed Oct 12, 2023
1 parent a578284 commit 6d13fd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/services/katello/pulp3/pulp_content_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6d13fd5

Please sign in to comment.