Bug 1437155

Summary: [RFE] hammer- allow user to specify column widths for table output
Product: Red Hat Satellite Reporter: Ash Westbrook <awestbro>
Component: HammerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.2.7CC: dhlavacd, jcallaha, mhulan, pgervase, tstrachota
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-03 19:18:36 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 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.