Revision 7a10e988
Added by dustin tsang almost 10 years ago
lib/hammer_cli_katello/host_collection.rb | ||
---|---|---|
class CreateCommand < HammerCLIKatello::CreateCommand
|
||
include UuidRequestable
|
||
resource :host_collections, :create
|
||
def request_params
|
||
super.tap do |params|
|
||
if params['max_content_hosts'] && params['unlimited_content_hosts'].nil?
|
||
params['unlimited_content_hosts'] = false
|
||
end
|
||
end
|
||
end
|
||
|
||
success_message _("Host collection created")
|
||
failure_message _("Could not create the host collection")
|
Also available in: Unified diff
Fixes #6987 - set unlimited_content_hosts
creation of host-collections with the --max-content-hosts flag also
sets the unlimited_content_host flag.