Project

General

Profile

Bug #31984

'hammer host subscription product-content' Cannot Show 'Default Enabled?' Field

Added by Oleh Fedorenko 8 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Other commands
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Found in Releases:
In Kanboard:

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:

  1. 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".

Associated revisions

Revision e64639e9 (diff)
Added by Oleh Fedorenko 6 months ago

Fixes #31984 - Add full comparison for fields option

Revision 2dd60541
Added by yifat makias 6 months ago

Merge pull request #341 from ofedoren/bug-31984-fix-fields-opt

Fixes #31984 - Add full comparison for fields option

History

#1 Updated by Oleh Fedorenko 8 months ago

  • Triaged changed from No to Yes
  • Assignee set to Oleh Fedorenko
  • Status changed from New to Assigned

#2 Updated by The Foreman Bot 8 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/341 added

#3 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases hammer-cli-3.0.0 added

#4 Updated by Oleh Fedorenko 6 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Oleh Fedorenko 5 months ago

  • Fixed in Releases hammer-cli-2.5.1 added

Also available in: Atom PDF