ldap/admin/src/scripts/ds-logpipe.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 45c71650fffa818799d607b425d0d453c548acb5
Author: Simon Pichugin <spichugi(a)redhat.com>
Date: Tue Oct 6 11:32:36 2015 +0200
Ticket 48302 - ds-logpipe.py with wrong arguments - python exception in the output
Description: If we execute ds-logpipe.py with wrong arguments,
then instead of proper message we see AttributeError
python exception.
It happens, because "args" list doesn't have join()
function.
This patch sets join() function to the string object
and "args" list to the argument of join() function.
https://fedorahosted.org/389/ticket/48302
Author: Simon Pichugin <spichugi(a)redhat.com>
Reviewed by: nhosoi, wibrown
diff --git a/ldap/admin/src/scripts/ds-logpipe.py b/ldap/admin/src/scripts/ds-logpipe.py
index ca6c27f..4ba4d1b 100644
--- a/ldap/admin/src/scripts/ds-logpipe.py
+++ b/ldap/admin/src/scripts/ds-logpipe.py
@@ -256,7 +256,7 @@ def parse_options():
if len(args) < 1:
parser.error("You must specify the name of the pipe to use")
if len(args) > 1:
- parser.error("error - unhandled command line arguments: %s" %
args.join(' '))
+ parser.error("error - unhandled command line arguments: %s" % '
'.join(args))
return options, args[0]