Project

General

Profile

Bug #14203

hammer host-collection create fails with undefined local variable or method `option_host_ids'

Added by Brad Buckingham over 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

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

Revision 37d23f69 (diff)
Added by Brad Buckingham over 3 years ago

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

Revision b1621010
Added by Brad Buckingham over 3 years ago

Merge pull request #365 from bbuckingham/issue-14203

fixes #14203 - host-collection create: generating 'option_host_ids' error

History

#1 Updated by The Foreman Bot over 3 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 over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 86

Also available in: Atom PDF