Bug #31984
closed'hammer host subscription product-content' Cannot Show 'Default Enabled?' Field
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1933353
Description of problem:
According to 'hammer host subscription product-content --help', I should be able to restrict the output fields. I cannot do that for the "Default Enabled?" field.
Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli-2.1.2-1.el7sat.noarch
How reproducible:
- hammer host subscription product-content --host contenthost.localdomain --fields="label,default enabled?,override"
Actual results:
---------------------------------------|----------
LABEL | OVERRIDE
---------------------------------------|----------
rhel-7-server-rpms | enabled:0
rhel-7-server-eus-rpms |
rhel-7-server-extras-rpms |
rhel-8-for-x86_64-appstream-rpms |
rhel-8-for-x86_64-appstream-eus-rpms |
rhel-8-for-x86_64-baseos-rpms |
rhel-8-for-x86_64-baseos-eus-rpms |
rhel-7-server-satellite-tools-6.8-rpms |
---------------------------------------|----------
Expected results:
---------------------------------------|------------------|----------
LABEL | DEFAULT ENABLED? | OVERRIDE
---------------------------------------|------------------|----------
rhel-7-server-rpms | yes | enabled:0
rhel-7-server-eus-rpms | no |
rhel-7-server-extras-rpms | no |
rhel-8-for-x86_64-appstream-rpms | yes |
rhel-8-for-x86_64-appstream-eus-rpms | no |
rhel-8-for-x86_64-baseos-rpms | yes |
rhel-8-for-x86_64-baseos-eus-rpms | no |
rhel-7-server-satellite-tools-6.8-rpms | no |
---------------------------------------|------------------|----------
Additional info:
I'm sure it is the question mark that is that is throwing my --fields option off. I've tried escaping it, leaving it off and about 10 other variations to no success.
Not sure if this is an actual bug with the hammer program or a documentation issue. (The documentation could definitely be improved, as the --help output shows:
-----------------|-----|---------|-----
FIELDS | ALL | DEFAULT | THIN
-----------------|-----|---------|-----
ID | x | x | x
Name | x | x | x
Type | x | x |
URL | x | x |
GPG Key | x | x |
Label | x | x |
Default Enabled? | x | x |
Override | x | x |
-----------------|-----|---------|-----
...yet trying to use --fields="ID" just shows blank lines. One has to use "Id" or "id".