From 9800be7bec144a3b77e91096fa8b288b96fb8492 Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Tue, 5 Jun 2018 16:00:08 +0530 Subject: Use --mode=script at all times for remove_brick Change-Id: I6b4c3a0ed2ede26e4db3210ee87e604e01059748 --- glustolibs-gluster/glustolibs/gluster/brick_ops.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'glustolibs-gluster/glustolibs/gluster/brick_ops.py') 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 = '' -- cgit