client/rhel/spacewalk-oscap/scap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2ba74f1eefa093a1b6a78cc3f7d9bf95b9395657 Author: Simon Lukasik slukasik@redhat.com Date: Thu Mar 29 15:50:42 2012 +0200
When errors occur submit them back to the server.
On the web user interface user will see the following: Client execution returned "oscap tool did not produce valid xml. Profile "server" was not found. xccdf_eval: oscap tool returned 1" (code 1)
diff --git a/client/rhel/spacewalk-oscap/scap.py b/client/rhel/spacewalk-oscap/scap.py index ec93248..cfcf46d 100644 --- a/client/rhel/spacewalk-oscap/scap.py +++ b/client/rhel/spacewalk-oscap/scap.py @@ -19,7 +19,7 @@ def xccdf_eval(args, cache_only=None): oscap_err = _run_oscap(['xccdf', 'eval', '--results', results_file.name] + args['params'].split(' ') + [args['path']]) if not _assert_xml(results_file.name): - return (1, 'oscap tool did not produce valid xml.', {}) + return (1, 'oscap tool did not produce valid xml.\n' + oscap_err, {})
ret, resume, xslt_err = _xccdf_resume(results_file.name) del(results_file)
spacewalk-commits@lists.fedorahosted.org