Bug #21435
closedhammer host-collection list requires organization parameter with host-id provided
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1503704
Description of problem:
[root@cisco-b420m3-01 ~]# hammer host-collection list --host-id 2
Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.
[root@cisco-b420m3-01 ~]# hammer host-collection list --host-id 3 --organization-id 1
Couldn't find Host::Managed with 'id'=3 [WHERE "hosts"."type" IN ('Host::Managed')]
This should not happen, since host-id is unique, so satellite should be able to figure out the appt organization.
Also, this is a regression since last snap (6.3.0-19)
Version-Release number of selected component (if applicable):
6.3.0-20
How reproducible:
Steps to Reproduce:
1. create a host collection and create & add a host into it
2. try to list host collection by specifying its member id (host-id)
Actual results:
organization parameter required
Expected results:
should be able to list the HC
Additional info: