Bug #21297
openHave output formatter to look for title attribute
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1496810
Description of problem:
Version-Release number of selected component (if applicable):
Build: Satellite 6.3 snap17
How reproducible:
Always
Steps to Reproduce:
1. hammer --output=csv -u admin -p changeme scap-content create --title="test" --scap-file="ssg-rhel6-ds.xml"
Message,Id
Scap content successfully created,18
We dont have a Title output for any create/update commands for scap-content
Ondřej Pražák 2017-09-11 02:18:35 EDT
Hi,
scap content does not have a name, it has a title instead. The output formatter checks for id and name attributes and displays them automatically. As soon as we make output formatter for csv look for title attribute, this will display title as well
Actual results:
The output doesn't have title with csv,json,yaml formatters
Expected results:
It should show, have title field
Additional info:
No data to display