From d444871bc9b1a278c64676eed7015c4acadf1e07 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Thu, 20 Oct 2016 16:26:27 +0530 Subject: [PATCH 155/157] 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 >NetBSD-regression: NetBSD Build System >CentOS-regression: Gluster Build System >Reviewed-by: Atin Mukherjee BUG: 1387152 Change-Id: Ia8785d6108cb86f7d89ecf9ea552df0334b41398 Signed-off-by: Aravinda VK Reviewed-on: https://code.engineering.redhat.com/gerrit/89418 Reviewed-by: Atin Mukherjee Tested-by: Atin Mukherjee --- cli/src/cli-cmd-volume.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 67da5a6..998bf46 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -828,7 +828,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; -- 1.7.1