client/rhel/spacewalk-oscap/scap.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7b68d2d5e505d39d4089b019aa014c095b96b268
Author: Simon Lukasik <slukasik(a)redhat.com>
Date: Tue Oct 15 17:07:43 2013 +0200
Improve logged error message.
Related: f6d747158f07af9fb5006b1cccd52f9e9c11badb
Addressing ugly message as (not the cause):
D: Excluding "%s" file from upload. Not an
XML./tmp/tmpL8_Ei4/xccdf-report.html
diff --git a/client/rhel/spacewalk-oscap/scap.py b/client/rhel/spacewalk-oscap/scap.py
index f2c50e5..6ccea9a 100644
--- a/client/rhel/spacewalk-oscap/scap.py
+++ b/client/rhel/spacewalk-oscap/scap.py
@@ -143,7 +143,7 @@ def _upload_results(xccdf_result, results_dir, args):
def _upload_file(server, systemid, args, path, filename, f):
if filename != 'xccdf-report.html' and not _assert_xml(f):
- log.log_debug('Excluding "%s" file from upload. Not an XML.',
path)
+ log.log_debug('Excluding "%s" file from upload. Not an XML.' %
path)
return '\nxccdf_eval: File "%s" not uploaded. Not an XML file
format.' % filename
stat = os.fstat(f.fileno())
Show replies by date