Bug 1480590

Summary: No option to download scap content in CLI
Product: Red Hat Satellite Reporter: Sanket Jagtap <sjagtap>
Component: SCAP PluginAssignee: Ondřej Pražák <oprazak>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, bkearney, jcallaha, mhulan, nkathole, oprazak
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hammer_cli_foreman_openscap 0.1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 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 Sanket Jagtap 2017-08-11 12:38:35 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Satellite 6.3.0 snap 10

How reproducible:


Steps to Reproduce:
1.No option to download scap-content via CLI
2.
3.

Actual results:
hammer> scap-content --help
Usage:
     scap-content [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 create                        Create SCAP content
 delete                        Deletes an SCAP content
 info                          Show an SCAP content
 list                          List SCAP contents
 update                        Update an SCAP content

Options:
 -h, --help                    print help


Expected results:
There should a option to download the scap-content , as UI supports it

Additional info:

Comment 1 Ondřej Pražák 2017-08-15 07:23:41 UTC
Created redmine issue http://projects.theforeman.org/issues/20602 from this bug

Comment 6 Satellite Program 2017-08-18 14:18:01 UTC
Upstream bug assigned to oprazak

Comment 7 Nikhil Kathole 2017-09-17 09:46:06 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 16

steps:
1. # hammer scap-content --help
Usage:
    hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 create                        Create SCAP content
 delete                        Deletes an SCAP content
 download                      Show an SCAP content as XML
 info                          Show an SCAP content
 list                          List SCAP contents
 update                        Update an SCAP content

Options:
 -h, --help                    print help

Verifying this as download option for scap-content is added in CLI.But while downloading scap-content it shows error as 
 # hammer scap-content download --id=4 --path=/var
Could not download the SCAP content file:
  Error: undefined method `[]' for nil:NilClass

So creating new BZ for this : https://bugzilla.redhat.com/show_bug.cgi?id=1492418

Comment 8 Satellite Program 2018-02-21 16:51:07 UTC
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.
> 
> https://access.redhat.com/errata/RHSA-2018:0336