diff options
author | Vinayak Papnoi <vpapnoi@redhat.com> | 2019-08-06 18:56:00 +0530 |
---|---|---|
committer | Bala Konda Reddy M <bmekala@redhat.com> | 2019-08-07 05:11:19 +0000 |
commit | 8e47e9ab8ec6b9327c5d71e20a29bdac64189027 (patch) | |
tree | 3e81f5d8f1ed05b956b487d64bbaa2868b38d871 /glustolibs-gluster | |
parent | 81b0e86816fe4f34cbb26dc541071dbeda7666a9 (diff) |
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 <vpapnoi@redhat.com>
Diffstat (limited to 'glustolibs-gluster')
-rwxr-xr-x | glustolibs-gluster/glustolibs/gluster/heal_libs.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 ", |