diff options
author | Nigel Babu <nigelb@redhat.com> | 2018-06-05 16:00:08 +0530 |
---|---|---|
committer | Jonathan Holloway <jholloway@redhat.com> | 2018-06-06 05:54:33 +0000 |
commit | 9800be7bec144a3b77e91096fa8b288b96fb8492 (patch) | |
tree | 24cee3e3d210565ef10a0b7c3a61f1de75ac7595 /glustolibs-gluster | |
parent | 07493500ad1603f009ccfc7d7ade796cc09be356 (diff) |
Use --mode=script at all times for remove_brick
Change-Id: I6b4c3a0ed2ede26e4db3210ee87e604e01059748
Diffstat (limited to 'glustolibs-gluster')
-rw-r--r-- | glustolibs-gluster/glustolibs/gluster/brick_ops.py | 3 |
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 7ac34c690..db4074c61 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 = '' |