summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornagpavanchilakam <nchilaka@redhat.com>2019-01-03 12:13:45 +0530
committernagpavanchilakam <nchilaka@redhat.com>2019-01-03 12:14:49 +0530
commit6906b162f3742e80fbec913dbac0503f53b4c365 (patch)
treeb647a6e48f24e9ce634d2dd90ddfa56a7a291b2a
parente751a3ead0b59b25583fa5442a373c640c41a753 (diff)
fixng lib according to functinality change
Change-Id: I1525d783c223dd3bb3099419bcd9a5efcf0f0085
-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)