Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 795520

Summary: Add support for --noheading option to suppress all output headings for easier CLI parsing
Product: Red Hat Satellite Reporter: James Laska <jlaska>
Component: katello-agentAssignee: Lukas Zapletal <lzap>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.0CC: jturner, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-02 11:28:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
0001-795520-Add-support-for-noheading-option.patch none

Description James Laska 2012-02-20 19:01:57 UTC
Description of problem:

The katello command always emits the headings which makes parsing command output slightly more annoying.  It would be nice for katello sub-commands to support a --noheading option to suppress all column headers and row separators.

Version-Release number of selected component (if applicable):
 * katello-cli-0.1.54-2.el6.noarch
 * katello-0.1.238-4.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. katello -u admin -p admin product list --noheading
  
Actual results:

> --------------------------------------------------------------------------------
>            Product List For Organization redhat, Environment 'Stage'
> 
>  Id              Name                              Provider Id   Provider Name   Sync Plan Name   GPG key  
> --------------------------------------------------------------------------------
>  69              Red Hat Enterprise Linux Server   2             Red Hat         None                      
>  1329490964767   Tools                             3             CloudForms      None                      
>  1329490960529   System Engine                     3             CloudForms      None                      
>  1329490955541   Cloud Engine                      3             CloudForms      None                      

Expected results:

>  69              Red Hat Enterprise Linux Server   2             Red Hat         None                      
>  1329490964767   Tools                             3             CloudForms      None                      
>  1329490960529   System Engine                     3             CloudForms      None                      
>  1329490955541   Cloud Engine                      3             CloudForms      None

Comment 1 James Laska 2012-02-20 19:03:07 UTC
Created attachment 564504 [details]
0001-795520-Add-support-for-noheading-option.patch

Tested proposed patch

Comment 3 Lukas Zapletal 2012-08-02 10:02:24 UTC
Nice patch, going to test.

Comment 4 Lukas Zapletal 2012-08-02 11:28:15 UTC
Had to rewrite the patch, there has been big refactoring in this area. Also added man page. Thanks!

https://github.com/Katello/katello/pull/417