Bug 1651638

Summary: RFE: display only repo IDs in the CLI
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Radek Bíba <rbiba>
Component: ToolsAssignee: RHUI Bug List <rhui-bugs>
Status: CLOSED ERRATA QA Contact: Radek Bíba <rbiba>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.0.6CC: mkubik
Target Milestone: 3.0.7Keywords: FutureFeature
Target Release: 3.0.x   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-23 18:05:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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