Hide Forgot
Description of problem: You cannot get the info for a host collection through hammer by name, only by id hammer> host-collection list --organization-id 1 ---|---------------|-------|------------ ID | NAME | LIMIT | DESCRIPTION ---|---------------|-------|------------ 5 | test123 | None | 1 | RHEL 7 Server | None | 2 | RHEL 6 Server | None | 3 | RHEL 5 Server | None | 4 | Capsule | None | ---|---------------|-------|------------ Note that you cannot get the info by name, only by ID hammer> host-collection info --id 5 ID: 5 Name: test123 Limit: None Description: Total Hosts: 0 hammer> host-collection info --name test123 undefined method `id' for nil:NilClass Version-Release number of selected component (if applicable): * Satellite 6.2.0 SNAP 5.1 How reproducible: Steps to Reproduce: 1. Create a host-collection 2. use hammer host-collection --name <name of your new host collection> 3. Actual results: undefined method `id' for nil:NilClass Expected results: Additional info: Discovered while testing https://bugzilla.redhat.com/show_bug.cgi?id=1214675
This is very similar to bug 1324848. They may be related to the same issue.
*** This bug has been marked as a duplicate of bug 1331875 ***