summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2016-10-20 16:26:27 +0530
committerAravinda VK <avishwan@redhat.com>2016-11-30 02:17:47 -0800
commit657fa4dc49332b02ca7a153defeed7c4c8ca14ac (patch)
treecf517cbf31c330b17bcf53d8613b978efa5deb58 /cli
parenteaeef4b80cd9e19f8ecda5f842732470712d476b (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 > 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> BUG: 1388070 Change-Id: Ia8785d6108cb86f7d89ecf9ea552df0334b41398 Signed-off-by: Aravinda VK <avishwan@redhat.com> (cherry picked from commit f31b3213e2a97259faa7dcae2354d2535732068b) Reviewed-on: http://review.gluster.org/15714 CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD 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 572bba45558..dc5c6ea5a92 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;