summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-rpc-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
-rw-r--r--cli/src/cli-rpc-ops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index 45fbb93867d..ba044efe5d7 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -1854,7 +1854,8 @@ done:
else {
if (rsp.op_ret)
- if (cmd == GF_DEFRAG_CMD_START_TIER) {
+ if (cmd == GF_DEFRAG_CMD_START_TIER || cmd ==
+ GF_DEFRAG_CMD_STATUS_TIER) {
cli_err ("Tiering Migration Functionality: %s:"
" failed%s%s", volname,
strlen (msg) ? ": " : "", msg);
@@ -1863,7 +1864,8 @@ done:
volname, strlen (msg) ? ": " : "",
msg);
else
- if (cmd == GF_DEFRAG_CMD_START_TIER) {
+ if (cmd == GF_DEFRAG_CMD_START_TIER || cmd ==
+ GF_DEFRAG_CMD_STATUS_TIER) {
cli_out ("Tiering Migration Functionality: %s:"
" success%s%s", volname,
strlen (msg) ? ": " : "", msg);