summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/peer_ops.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/peer_ops.py b/glustolibs-gluster/glustolibs/gluster/peer_ops.py
index 93e4a2c..55385e8 100644
--- a/glustolibs-gluster/glustolibs/gluster/peer_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/peer_ops.py
@@ -74,9 +74,9 @@ def peer_detach(mnode, server, force=False):
of the command execution.
"""
if force:
- cmd = "gluster peer detach %s force" % server
+ cmd = "gluster peer detach %s force --mode=script" % server
else:
- cmd = "gluster peer detach %s" % server
+ cmd = "gluster peer detach %s --mode=script" % server
return g.run(mnode, cmd)