summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/volume_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/volume_ops.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/volume_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/volume_ops.py b/glustolibs-gluster/glustolibs/gluster/volume_ops.py
index 0b3c94b07..9bc86498c 100644
--- a/glustolibs-gluster/glustolibs/gluster/volume_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/volume_ops.py
@@ -573,7 +573,7 @@ def set_volume_options(mnode, volname, options):
# Check if group options are specified.
if 'group' in volume_options:
group_options = volume_options.pop('group')
- if isinstance(group_options, str):
+ if not isinstance(group_options, list):
group_options = [group_options]
for group_option in group_options:
cmd = ("gluster volume set %s group %s --mode=script" %