Bug #5028
closed`hammer subscription list --organization-id` is supposed to consume organization ID, but consumes organization LABEL
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1082777
Description of problem:
`hammer subscription list --organization-id` is supposed to consume organization ID, but consumes organization LABEL
Version-Release number of selected component (if applicable):
rubygem-hammer_cli-0.1.0-4.el6sat.noarch
How reproducible:
always
Steps to Reproduce:
1. # hammer organization list
---|------------------|------------------|------------------------------
ID | NAME | LABEL | DESCRIPTION
---|------------------|------------------|------------------------------
1 | ACME_Corporation | ACME_Corporation | ACME_Corporation Organization
---|------------------|------------------|------------------------------
2. # hammer subscription list -h
Usage:
hammer subscription list [OPTIONS]
Options:
--activation-key-id ACTIVATION_KEY_ID Activation key ID
--organization-id ORGANIZATION_ID Organization ID <<< note this
--system-id SYSTEM_ID UUID of the system
-h, --help print help
3. # hammer subscription list --organization-id 1
Couldn't find organization '1'
4. # hammer subscription list --organization-id ACME_Corporation
No data.
Actual results:
When you give organization ID, hammer claims "Couldn't find organization..."
Expected results:
Maybe option should be renamed to:
--organization-label ORGANIZATION_LABEL Organization label
?