From 8e47e9ab8ec6b9327c5d71e20a29bdac64189027 Mon Sep 17 00:00:00 2001 From: Vinayak Papnoi Date: Tue, 6 Aug 2019 18:56:00 +0530 Subject: Fix TypeError caused in heal_libs.py The line 316 of heal_libs.py 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 heal_libs.py will result in a TypeError scenario. This patch will fix the TypeError for the string formatting. Change-Id: I73abe573d2ccb60b74ccd6ae268b950640d75600 Signed-off-by: Vinayak Papnoi --- glustolibs-gluster/glustolibs/gluster/heal_libs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glustolibs-gluster') diff --git a/glustolibs-gluster/glustolibs/gluster/heal_libs.py b/glustolibs-gluster/glustolibs/gluster/heal_libs.py index e4f2b2fdf..8b7c3b437 100755 --- a/glustolibs-gluster/glustolibs/gluster/heal_libs.py +++ b/glustolibs-gluster/glustolibs/gluster/heal_libs.py @@ -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: g.log.info("All self-heal-daemons of the volume '%s' are online ", -- cgit