From f31b3213e2a97259faa7dcae2354d2535732068b Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Thu, 20 Oct 2016 16:26:27 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/15685 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Atin Mukherjee --- cli/src/cli-cmd-volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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; -- cgit