Red Hat Bugzilla – Bug 1471801
No information displayed on creation of scap content from CLI
Last modified: 2018-02-21 12:12:01 EST
Description of problem:
Version-Release number of selected component (if applicable):
Satellite 6.3.0 snap 7
Steps to Reproduce:
1.Create scap-content from cli
2.No information displayed regarding the created scap-content
hammer -u admin -p pass --output=csv scap-content create --title="apple" --scap-file="/tmp/ssg-rhel6-ds.xml"
Scap content successfully created,id,name
Actual ID and name should be printed of created scap-content
scap-content is created successfully
Sanket, is this a regression from 6.2?
No, This is new feature for 6.3 , OSCAP CLI support
Created redmine issue http://projects.theforeman.org/issues/20606 from this bug
Upstream bug assigned to email@example.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20606 has been resolved.
While verifying, I found Message and ID info. Whether "Name" is expected?
# hammer -u admin -p changeme --output=csv scap-content create --title="apple" --scap-file="ssg-rhel6-ds.xml"
Scap content successfully created,5
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
Satellite-6.3 Snap 15
# hammer --output=csv -u admin -p changeme scap-content create --title="test" --scap-file="ssg-rhel6-ds.xml"
Scap content successfully created,18
Verifying this bug as notification and ID successfully displayed in output and will file another bug for addition of title in success notification.
Tracking the Title for scap-content issue Separately https://bugzilla.redhat.com/show_bug.cgi?id=1496810
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.