Bug 1632252

Summary: failed to get info on created scap content: wrong number of arguments (given 1, expected 0)
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: SCAP PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4CC: mhulan, oprazak
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-25 06:27:47 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 Jan Hutař 2018-09-24 13:12:09 UTC
Description of problem:
failed to get info on created scap content: wrong number of arguments (given 1, expected 0)


Version-Release number of selected component (if applicable):
satellite-6.4.0-15.el7sat.noarch


How reproducible:
sometimes


Steps to Reproduce:
1. hammer -v -u admin -p changeme --output=csv scap-content create --scap-file="/tmp/ssg-rhel6-ds.xml" --title="TtCyeKUxlA"
2. hammer -v -u admin -p changeme scap-content info --id="12"


Actual results:
[ERROR 2018-09-23T04:52:47 API] 500 Internal Server Error
[ERROR 2018-09-23T04:52:47 Exception] wrong number of arguments (given 1, expected 0) wrong number of arguments (given 1, expected 0)


Expected results:
Should work

Comment 2 Ondřej Pražák 2018-09-25 06:27:47 UTC
The problem is reproducible when there is a default location/organization set for hammer.

hammer defaults add --param-name location_id --param-value 2
hammer scap-content info --id 12

The error disappears when the default is removed.

*** This bug has been marked as a duplicate of bug 1631340 ***

Comment 3 Jan Hutař 2018-10-01 06:19:03 UTC
Thank you Ondřej!