Class: HammerCLIKatello::ActivationKeyCommand::CreateCommand

Inherits:
CreateCommand
  • Object
show all
Includes:
LifecycleEnvironmentNameResolvable
Defined in:
lib/hammer_cli_katello/activation_key.rb

Instance Method Summary collapse

Methods included from LifecycleEnvironmentNameResolvable

#all_options, included, #lifecycle_environment_resolve_options

Methods included from ResolverCommons

included

Instance Method Details

#request_paramsObject



84
85
86
87
88
89
90
# File 'lib/hammer_cli_katello/activation_key.rb', line 84

def request_params
  params = super
  if params.key?('max_content_hosts') && !params['max_content_hosts'].match(Common::INTEGER_FORMAT)
    fail ::HammerCLI::Validator::ValidationError, 'Content host limit must be an integer'
  end
  params
end