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 10, 2023
1 parent 06cf003 commit 8b12045
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/katello/module_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions app/services/katello/pulp3/pulp_content_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b12045

Please sign in to comment.