From b7d8e72f02ecb815e190773158289866ffda55ca Mon Sep 17 00:00:00 2001 From: William Brown Date: Tue, 12 Apr 2016 15:42:35 +1000 Subject: [PATCH] Ticket 48791 - format args in server tools Bug Description: A crash was found during a test: # sometimes the server fails to start - try again > rc = os.system("%s %s" % (fullCmd)) E TypeError: not enough arguments for format string Fix Description: Fix the parameters. https://fedorahosted.org/389/ticket/48791 Author: wibrown Review by: ??? --- lib389/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib389/tools.py b/lib389/tools.py index f044a65..6068fb6 100644 --- a/lib389/tools.py +++ b/lib389/tools.py @@ -241,12 +241,12 @@ class DirSrvTools(object): done = True elif line.find("Initialization Failed") >= 0: # sometimes the server fails to start - try again - rc = os.system("%s %s" % (fullCmd)) + rc = os.system("%s" % (fullCmd)) pos = logfp.tell() break elif line.find("exiting.") >= 0: # possible transient condition - try again - rc = os.system("%s %s" % (fullCmd)) + rc = os.system("%s" % (fullCmd)) pos = logfp.tell() break pos = logfp.tell() -- 2.5.5