Skip to content

Commit

Permalink
Fixes #38143 - Add hint to error message about MultiCV
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz committed Jan 17, 2025
1 parent 0f63d27 commit 02eee07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/katello/activation_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def self.in_environments(envs)
def content_view_environments=(new_cves)
if new_cves.length > 1 && !Setting['allow_multiple_content_views']
fail ::Katello::Errors::MultiEnvironmentNotSupportedError,
_("Assigning an activation key to multiple content view environments is not enabled.")
_("Assigning an activation key to multiple content view environments is not enabled. To enable, set the allow_multiple_content_views setting.")
end
super(new_cves)
Katello::ContentViewEnvironmentActivationKey.reprioritize_for_activation_key(self, new_cves)
Expand Down
2 changes: 1 addition & 1 deletion app/models/katello/host/content_facet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def single_lifecycle_environment
def content_view_environments=(new_cves)
if new_cves.length > 1 && !Setting['allow_multiple_content_views']
fail ::Katello::Errors::MultiEnvironmentNotSupportedError,
_("Assigning a host to multiple content view environments is not enabled.")
_("Assigning a host to multiple content view environments is not enabled. To enable, set the allow_multiple_content_views setting.")
end
super(new_cves)
Katello::ContentViewEnvironmentContentFacet.reprioritize_for_content_facet(self, new_cves)
Expand Down

0 comments on commit 02eee07

Please sign in to comment.