Skip to content

Commit

Permalink
Refs #37151 - Fix --force flag to use option_override_name
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz committed Dec 17, 2024
1 parent 4eab7ae commit 0d45f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hammer_cli_katello/content_override.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def self.setup
if option(:option_remove).exist?
option(:option_value).rejected
elsif option(:option_value).exist?
if !@option_values['option_value'].casecmp('enabled').zero? &&
if !@option_values['option_override_name'].casecmp('enabled').zero? &&
@option_values['option_force'] == false
raise ArgumentError, _("You must use --force to set a value other than 'enabled'")
end
Expand Down

0 comments on commit 0d45f9c

Please sign in to comment.