diff options
authorVinayak Papnoi <>2019-08-06 18:56:00 +0530
committerBala Konda Reddy M <>2019-08-07 05:11:19 +0000
commit8e47e9ab8ec6b9327c5d71e20a29bdac64189027 (patch)
parent81b0e86816fe4f34cbb26dc541071dbeda7666a9 (diff)
Fix TypeError caused in
The line 316 of library contains a function called 'wait_for_self_heal_daemons_to_be_online' which makes use of the 'volname' and 'timeout' arguements for string formatting. The method used for the string formatting was wrong which causes an error 'TypeError: not enough arguments for format string'. Due to this, all the test cases which make use of will result in a TypeError scenario. This patch will fix the TypeError for the string formatting. Change-Id: I73abe573d2ccb60b74ccd6ae268b950640d75600 Signed-off-by: Vinayak Papnoi <>
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/ b/glustolibs-gluster/glustolibs/gluster/
index e4f2b2fdf..8b7c3b437 100755
--- a/glustolibs-gluster/glustolibs/gluster/
+++ b/glustolibs-gluster/glustolibs/gluster/
@@ -313,7 +313,7 @@ def wait_for_self_heal_daemons_to_be_online(mnode, volname, timeout=300):
if not flag:
g.log.error("All self-heal-daemons of the volume '%s' are not online "
- "even after %d minutes", (volname, timeout/60.0))
+ "even after %d minutes" % (volname, timeout/60.0))
return False
else:"All self-heal-daemons of the volume '%s' are online ",