summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorManikandan Selvaganesh <mselvaga@redhat.com>2015-09-15 16:05:25 +0530
committerDan Lambright <dlambrig@redhat.com>2015-09-16 14:47:12 -0700
commit2834bdf52c1ed690f74ed05fec5d28ecd05c0624 (patch)
treeaa5280a59608124a2ad534ae4808852805629de3 /cli
parenta9bb3dcb1d22c5bfb527b9b85ad238b0137d3282 (diff)
tier/cli : adding a check for gluster v tier help command
Currently, 'gluster v tier/attach-tier/detach-tier help' command shows the usage, and then prints 'Tier command failed'. With this patch the error message is removed. Change-Id: I1679fe3303d73ba6b6fdbb7ee18028062d446f39 BUG: 1263224 Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com> Reviewed-on: http://review.gluster.org/12181 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-volume.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index ee9a09af4ba..fa9e965881b 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -1055,6 +1055,8 @@ cli_cmd_volume_tier_cbk (struct cli_state *state,
if (wordcount < 4) {
cli_usage_out (word->pattern);
+ if (!strcmp(words[2], "help"))
+ ret = 0;
goto out;
}