Bug #14203
hammer host-collection create fails with undefined local variable or method `option_host_ids'
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1317674
Description of problem:
The command hammer host-collection create is completely broken in latest 6.2.0 build:
hammer> host-collection create -h
Usage:
host-collection create [OPTIONS]
Options:
--description DESCRIPTION
--host-collection-ids HOST_COLLECTION_IDS Array of host ids to replace the hosts in host collection
Comma separated list of values.
--hosts HOST_NAMES Comma separated list of values.
--max-hosts MAX_HOSTS Maximum number of hosts in the host collection
--name NAME Host Collection name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--unlimited-hosts UNLIMITED_HOSTS Whether or not the host collection may have unlimited hosts
One of true/false, yes/no, 1/0.
-h, --help print help
hammer> host-collection create --organization-id="1058" --name="dFJsRjkakviNeAv"
Could not create the host collection:
Error: undefined local variable or method `option_host_ids' for #<HammerCLIKatello::HostCollection::CreateCommand:0x00000002f10700>
Version-Release number of selected component (if applicable):
- Satellite 6.2.0 SNAP 3.1
How reproducible:
Steps to Reproduce:
1. Try to create a new host-collection via hammer
2.
3.
Actual results:
Expected results:
Additional info:
Associated revisions
History
#1
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Brad Buckingham
- Pull request https://github.com/Katello/hammer-cli-katello/pull/365 added
#2
Updated by Brad Buckingham about 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-katello|37d23f69ca236e10b3cf17cb6c10a17bf0d74e5d.
#3
Updated by Eric Helms about 6 years ago
- Legacy Backlogs Release (now unused) set to 86
fixes #14203 - host-collection create: generating 'option_host_ids' error
This commit is to address errors during creation of a host collection.
Before:
-------
hammer> host-collection create --organization-id 1 --name cli-test-2
Could not create the host collection:
Error: undefined local variable or method `option_host_ids' for #<HammerCLIKatello::HostCollection::CreateCommand:0x00000005567958>
After:
------
hammer> host-collection create --organization-id 1 --name cli-test-2
Host collection created