Bug #29732
closedupdate the help description of hammer subscription list command for the --fields option to be more explicit
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1829701
Description of problem:
hammer subscription list does not show ID and UUID if requested via --fields option
[root@dhcp-2-31 ~]# hammer subscription list --fields "ID,UUID,Name,Type"
----------------------------------------------|---------
NAME | TYPE
----------------------------------------------|---------
Red Hat Beta Access | Physical
Red Hat Enterprise Linux High Touch Beta | Physical
Red Hat Satellite Employee Subscription | Physical
Red Hat Satellite Infrastructure Subscription | Physical
----------------------------------------------|---------
[root@dhcp-2-31 ~]# hammer subscription list --help
Usage:
hammer subscription list [OPTIONS]
Options:
...
--fields FIELDS Show specified fileds or predefined filed sets only. (See below)
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
...
Predefined field sets:
-----------|-----|--------
FIELDS | ALL | DEFAULT
-----------|-----|--------
ID | x | x
UUID | x | x
Name | x | x
Type | x | x
Contract | x | x
Account | x | x
Support | x | x
Start Date | x | x
End Date | x | x
Quantity | x | x
Consumed | x | x
-----------|-----|--------
Version-Release number of selected component (if applicable):
Satellite 6.7.0
tfm-rubygem-hammer_cli-0.19.2.1-1.el7sat.noarch
How reproducible:
always
Steps to Reproduce:
1. hammer subscription list --fields "ID,UUID,Name,Type"
Actual results:
ID and UUID is not listed
Expected results:
ID and UUID being listed
Additional info: