summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2018-06-05 16:00:08 +0530
committerJonathan Holloway <jholloway@redhat.com>2018-06-06 05:54:33 +0000
commit9800be7bec144a3b77e91096fa8b288b96fb8492 (patch)
tree24cee3e3d210565ef10a0b7c3a61f1de75ac7595 /glustolibs-gluster/glustolibs/gluster
parent07493500ad1603f009ccfc7d7ade796cc09be356 (diff)
Use --mode=script at all times for remove_brick
Change-Id: I6b4c3a0ed2ede26e4db3210ee87e604e01059748
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/brick_ops.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/brick_ops.py b/glustolibs-gluster/glustolibs/gluster/brick_ops.py
index 7ac34c6..db4074c 100644
--- a/glustolibs-gluster/glustolibs/gluster/brick_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/brick_ops.py
@@ -100,8 +100,7 @@ def remove_brick(mnode, volname, bricks_list, option, xml=False, **kwargs):
The third element 'err' is of type 'str' and is the stderr value
of the command execution.
"""
- if option == "commit" or option == "force":
- option = option + " --mode=script"
+ option = option + " --mode=script"
replica_count = None
replica = ''