summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/volume_ops.py
diff options
context:
space:
mode:
authorShwetha Panduranga <spandura@redhat.com>2016-12-01 20:31:25 +0530
committerShwetha Panduranga <spandura@redhat.com>2016-12-05 08:33:19 +0530
commitf6c0b1b4bb5edf09af0065c831e9002a15375993 (patch)
treedbfa497f18963ab9b6bf78b3e443a2e9d46692ca /glustolibs-gluster/glustolibs/gluster/volume_ops.py
parent0faf837454e3636876483dc289342e202af318e2 (diff)
Modifying the glusterbaseclass not to update the defaul values to global config.
For example: if 'volname' is not in mount, then do not update the default volname in g.config['mount']. Change-Id: Ib547b51372b16a08b07c11a5dcf70feca8674075 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
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 0239152c6..f7a9473cb 100644
--- a/glustolibs-gluster/glustolibs/gluster/volume_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/volume_ops.py
@@ -544,7 +544,7 @@ def set_volume_options(mnode, volname, options):
"""
_rc = True
for option in options:
- cmd = ("gluster volume set %s %s %s"
+ cmd = ("gluster volume set %s %s %s --mode=script"
% (volname, option, options[option]))
ret, _, _ = g.run(mnode, cmd)
if ret != 0: