summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/block_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/block_ops.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/block_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/block_ops.py b/glustolibs-gluster/glustolibs/gluster/block_ops.py
index 8e6ff25..f51c3e4 100644
--- a/glustolibs-gluster/glustolibs/gluster/block_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/block_ops.py
@@ -56,7 +56,7 @@ def block_create(mnode, volname, blockname, servers, size=None,
block_create(mnode, volname, blockname, servers, size,
**block_args_info)
"""
- if isinstance(servers, str):
+ if not isinstance(servers, list):
servers = [servers]
ha = auth = prealloc = storage = ring_buffer = ''