Bug 1651638 - RFE: display only repo IDs in the CLI
Summary: RFE: display only repo IDs in the CLI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 3.0.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 3.0.7
: 3.0.x
Assignee: RHUI Bug List
QA Contact: Radek Bíba
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-20 13:07 UTC by Radek Bíba
Modified: 2019-01-23 18:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-23 18:05:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0149 0 None None None 2019-01-23 18:05:17 UTC

Description Radek Bíba 2018-11-20 13:07:59 UTC
Description of problem:
The "rhui-manager repo list" command displays repos by their IDs and "display names". If I'm only interested in the IDs, I need to parse the output. Please add an option that will make the command print only the IDs, and a related option to control how the IDs should be separated (basically a delimiter), which would default to new lines. I could then take the raw output and feed it to other commands easily.

Version-Release number of selected component (if applicable):
3.0.6

Expected results:
Something like:

# rhui-manager repo list --ids-only
rhel-sap-hana-for-rhel-6-server-eus-rhui-rpms-6.7-x86_64
rhel-sap-hana-for-rhel-7-server-eus-rhui-rpms-7.4-x86_64

# rhui-manager repo list --ids-only --delimiter ,
rhel-sap-hana-for-rhel-6-server-eus-rhui-rpms-6.7-x86_64,rhel-sap-hana-for-rhel-7-server-eus-rhui-rpms-7.4-x86_64

-i and -d could be short variants of --ids-only and --delimiter. I don't care much what you call the options.

Comment 5 errata-xmlrpc 2019-01-23 18:05:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0149


Note You need to log in before you can comment on or make changes to this bug.