Bug 1437155 - [RFE] hammer- allow user to specify column widths for table output
Summary: [RFE] hammer- allow user to specify column widths for table output
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.7
Hardware: All
OS: Linux
low
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-29 16:15 UTC by Ash Westbrook
Modified: 2021-06-10 12:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-03 19:18:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20044 0 Low Closed hammer- allow user to specify column widths for table output 2021-02-16 23:04:56 UTC

Description Ash Westbrook 2017-03-29 16:15:14 UTC
Description of problem:

	

"With the default "table" output format, the "hammer" CLI has an unsavory habit of truncating output when the strings for fields exceed a certain length, especially when the output is multi-line (for example the "Description" field of a Host Collection). It would be nice if there was a command-line switch to turn that habit off."

This seems to be addressed upstream in:

  http://projects.theforeman.org/issues/4384


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

How reproducible:

 Always

Steps to Reproduce:
1. hammer --output table host-collection list --org <org name>
2.
3.

Actual results:

Table output is truncated 

Expected results:

Ability to set a higher table column width to at least 100

Additional info:

Comment 2 Marek Hulan 2017-06-19 14:24:02 UTC
There's currently no way to do this. The linked upstream issue improved the situation so that some fields are longer if necessary, but it does not solve this request to completely disable truncation. We could introduce some --dont-truncate parameter to hammer that would disable truncation. That could be good improvement for huge terminals.

If user wants to get the full data (e.g. description) for for further processing they can use json/yaml formats do not truncate strings.

Comment 3 Marek Hulan 2017-06-19 14:25:52 UTC
Created redmine issue http://projects.theforeman.org/issues/20044 from this bug

Comment 5 Bryan Kearney 2018-10-03 19:18:36 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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