Bug 1020788

Summary: Section 6.4.2 of Docs: User Guide provides a non-working python script
Product: Red Hat Satellite 5 Reporter: Rich Jerrido <rjerrido>
Component: Docs User GuideAssignee: Megan Lewis <melewis>
Status: CLOSED CURRENTRELEASE QA Contact: Dan Macpherson <dmacpher>
Severity: low Docs Contact:
Priority: low    
Version: 560CC: cperry
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-07 23:55:04 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:
Bug Depends On:    
Bug Blocks: 1018166    

Description Rich Jerrido 2013-10-18 09:29:05 UTC
Description of problem:

Section 6.4.2 of the Satellite 5.6 User Guide [1] provides a non-working Python script. The docs provide:

"
#!/usr/bin/python
client = xmlrpclib.Server('https://satellite.example.com/rpc/api')
key = client.auth.login('username', 'password')
client.system.scap.scheduleXccdfScan(key, 1000010001,
    '/usr/local/share/scap/usgcb-rhel5desktop-xccdf.xml',
    '--profile united_states_government_configuration_baseline')
"

It should provide
"#!/usr/bin/python
import xmlrpclib
client = xmlrpclib.Server('https://satellite.example.com/rpc/api')
key = client.auth.login('username', 'password')
client.system.scap.scheduleXccdfScan(key, 1000010001,
    '/usr/local/share/scap/usgcb-rhel5desktop-xccdf.xml',
    '--profile united_states_government_configuration_baseline')
"


[1] - https://access.redhat.com/site/documentation/en-US/Red_Hat_Satellite/5.6/html-single/User_Guide/index.html#sect-Red_Hat_Satellite-User_Guide-Performing_Audit_Scans-Using_the_API_to_Perform_Audit_Scans

Comment 1 Dan Macpherson 2014-01-21 15:20:15 UTC
This bug can be worked on early during the planning stages for Satellite 5.7.