Project

General

Profile

Actions

Bug #31984

closed

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

Added by Oleh Fedorenko about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Other commands
Target version:
-
Difficulty:
Triaged:
Yes
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".

Actions #1

Updated by Oleh Fedorenko about 3 years ago

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

Updated by The Foreman Bot about 3 years ago

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

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases hammer-cli-3.0.0 added
Actions #4

Updated by Oleh Fedorenko almost 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Oleh Fedorenko almost 3 years ago

  • Fixed in Releases hammer-cli-2.5.1 added
Actions

Also available in: Atom PDF