Browse Source

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 <[email protected]>

Reviewed by: nhosoi, wibrown
Simon Pichugin 10 years ago
parent
commit
45c71650ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/admin/src/scripts/ds-logpipe.py

+ 1 - 1
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]