Project

General

Profile

Actions

Bug #29732

closed

update the help description of hammer subscription list command for the --fields option to be more explicit

Added by Oleh Fedorenko almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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:

Actions #1

Updated by Amit Upadhye over 3 years ago

  • Project changed from Hammer CLI to Katello
Actions #2

Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/765 added
Actions #3

Updated by Amit Upadhye over 3 years ago

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

Updated by Jonathon Turel over 3 years ago

  • Category set to Hammer
  • Target version set to Katello 4.0.0
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF