summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinayak Papnoi <vpapnoi@redhat.com>2020-01-27 15:49:20 +0530
committerVinayak Papnoi <vpapnoi@redhat.com>2020-01-27 15:49:20 +0530
commitdb8c543a366934c087031695ca679af4c8be9463 (patch)
tree1b5088096fdf2de9d807d80dd9a7dd883d759958
parent5afeeb2a2400f98a2bd5caa28812d8a800e0d61c (diff)
[libfix] Fix type in wait_for_peers_to_connect
The method wait_for_peers_to_connect checks whether it's Arg 'servers' is a string. It should rather be checking if the arg is a list and accordingly make the changes if required. Changed the Arg 'servers' validation type from 'str' to 'list'. Change-Id: I74ddb489cd286c1f2531af478f8811759173f01e Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
-rw-r--r--glustolibs-gluster/glustolibs/gluster/peer_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/peer_ops.py b/glustolibs-gluster/glustolibs/gluster/peer_ops.py
index 7027ce11f..778953c33 100644
--- a/glustolibs-gluster/glustolibs/gluster/peer_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/peer_ops.py
@@ -437,7 +437,7 @@ def wait_for_peers_to_connect(mnode, servers, wait_timeout=30):
False otherwise.
"""
- if not isinstance(servers, str):
+ if not isinstance(servers, list):
servers = [servers]
count = 0