Skip to content

Commit

Permalink
Fixes #37681 - sort content types in ACS error message
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Jul 25, 2024
1 parent d207d35 commit f43b70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/katello/alternate_content_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AlternateContentSource < Katello::Model
validates :content_type, inclusion: {
in: ->(_) { RepositoryTypeManager.defined_repository_types.keys & CONTENT_TYPES },
allow_blank: false,
message: ->(_, _) { _("is not allowed for ACS. Must be one of the following: %s") % (RepositoryTypeManager.defined_repository_types.keys & CONTENT_TYPES).join(',') }
message: ->(_, _) { _("is not allowed for ACS. Must be one of the following: %s") % (RepositoryTypeManager.defined_repository_types.keys & CONTENT_TYPES).sort.join(',') }
}
validates :content_type, if: -> { rhui? }, inclusion: {
in: [::Katello::Repository::YUM_TYPE],
Expand Down

0 comments on commit f43b70a

Please sign in to comment.