Class: HammerCLIKatello::Organization::UpdateCommand
- Inherits:
-
HammerCLIForeman::Organization::UpdateCommand
- Object
- HammerCLIForeman::Organization::UpdateCommand
- HammerCLIKatello::Organization::UpdateCommand
- Includes:
- ResolverCommons
- Defined in:
- lib/hammer_cli_katello/organization.rb
Instance Method Summary collapse
Methods included from ResolverCommons
Instance Method Details
#request_params ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/hammer_cli_katello/organization.rb', line 71 def request_params params = super # This is so Hammer doesn't say "Nothing to update" when toggling SCA. # (see hammer-cli-foreman) # Rails will safely ignore the extra parameter. if params.key?('simple_content_access') params["organization"] = params.fetch('organization', {}).merge( "_simple_content_access" => params['simple_content_access']) unless params['simple_content_access'] warn( _("Simple Content Access will be required for all organizations in the next release.") ) end end params end |