Project

General

Profile

Actions

Bug #36725

closed

Output of "hammer scap-content" command with "bulk-upload" option displays unexpected word

Added by Oleh Fedorenko about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Low
Target version:
-
Difficulty:
Triaged:
Yes
Found in Releases:

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
  1. hammer scap-content bulk-upload --type default
  2. 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:

Actions #1

Updated by Oleh Fedorenko about 1 year ago

  • Project changed from Hammer CLI to OpenSCAP
  • Status changed from New to Assigned
  • Assignee set to Oleh Fedorenko
  • Triaged changed from No to Yes
Actions #2

Updated by The Foreman Bot about 1 year ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer_cli_foreman_openscap/pull/43 added
Actions #3

Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases hammer_cli_foreman_openscap 0.1.14 added
Actions #4

Updated by Oleh Fedorenko about 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Oleh Fedorenko 12 months ago

  • Fixed in Releases hammer_cli_foreman_openscap-0.2.0 added
  • Fixed in Releases deleted (hammer_cli_foreman_openscap 0.1.14)
Actions

Also available in: Atom PDF