Bug 1020788 - Section 6.4.2 of Docs: User Guide provides a non-working python script
Summary: Section 6.4.2 of Docs: User Guide provides a non-working python script
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Docs User Guide
Version: 560
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Megan Lewis
QA Contact: Dan Macpherson
URL:
Whiteboard:
Depends On:
Blocks: sat-docs
TreeView+ depends on / blocked
 
Reported: 2013-10-18 09:29 UTC by Rich Jerrido
Modified: 2015-07-07 23:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-07 23:55:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.