summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2016-10-20 16:26:27 +0530
committerAtin Mukherjee <amukherj@redhat.com>2016-10-24 02:15:28 -0700
commitf31b3213e2a97259faa7dcae2354d2535732068b (patch)
tree375950c849acc8ef610b6d3ee6e8be060648b7e0 /cli
parentcdc30ed8eacb6772e0dabb863ef51cef794d60dd (diff)
eventsapi: Fix sending event during volume set help
Event sent when `gluster volume set help` command is run with Volume name as "help" and empty options list With this patch, event sent only when volume set on a real volume BUG: 1387207 Change-Id: Ia8785d6108cb86f7d89ecf9ea552df0334b41398 Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/15685 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index 9b4c43e03f5..f7ccbf9b6c4 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -824,7 +824,7 @@ out:
}
#if (USE_EVENTS)
- if (ret == 0) {
+ if (ret == 0 && strcmp(words[2], "help") != 0) {
ret1 = dict_get_int32 (options, "count", &num_options);
if (ret1)
num_options = 0;