Bug #36725
closedOutput of "hammer scap-content" command with "bulk-upload" option displays unexpected word
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2213163
Description of problem: Output of "hammer scap-content bulk-upload" command showing extra unexpected words in the result, output of command can be more specific.
Version-Release number of selected component (if applicable): 6.13.0
How reproducible: Always
Steps to Reproduce:1. ssh to satellite server
2. execute hammer cli command
- hammer scap-content bulk-upload --type default
- hammer scap-content bulk-upload --type directory --directory /usr/share/xml/scap/ssg/content/
Actual results:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
#1. Loading the Default OpenSCAP Contents
[root@ip-fqdn ~]# hammer scap-content bulk-upload --type default
Errors:
Uploaded Scap Contents:
Scap Contents uploaded.
#2. Uploading Additional SCAP Content
[root@ip-fqdn ~]# hammer scap-content bulk-upload --type directory --directory /usr/share/xml/scap/ssg/content/
Errors:
Uploaded Scap Contents:
1) Id: 6
Title: firefox content
Original Filename: ssg-firefox-ds.xml
2) Id: 7
Title: rhel6 content
Original Filename: ssg-rhel6-ds.xml
3) Id: 8
Title: rhel7 content
Original Filename: ssg-rhel7-ds.xml
4) Id: 9
Title: rhel8 content
Original Filename: ssg-rhel8-ds.xml
Scap Contents uploaded.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expected results:
The output of command should be specific with result only or word "Error:" could be hidden if there is no error and only successful output message could be displayed.
Additional info: