diff options
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
| -rw-r--r-- | cli/src/cli-cmd-parser.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index a334fd931bf..140b021e363 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1721,9 +1721,11 @@ cli_cmd_volume_remove_brick_parse (const char **words, int wordcount,                          goto out;          } -        ret = dict_set_int32 (dict, "count", brick_count); -        if (ret) -                goto out; +        if (command != GF_OP_CMD_STATUS && command != GF_OP_CMD_STOP) { +                ret = dict_set_int32 (dict, "count", brick_count); +                if (ret) +                        goto out; +        }          *options = dict;  | 
