From 076934558de0cb1f08667d6b88f99f37c06e0479 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 19 Jul 2017 22:08:22 +0900 Subject: [PATCH] Allow "CLUSTER EVENTS" as synonym for "CLUSTER EVENT" --- repmgr-client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repmgr-client.c b/repmgr-client.c index d3f66014..fb8cfabf 100644 --- a/repmgr-client.c +++ b/repmgr-client.c @@ -629,6 +629,10 @@ main(int argc, char **argv) action = CLUSTER_SHOW; else if (strcasecmp(repmgr_action, "EVENT") == 0) action = CLUSTER_EVENT; + /* allow "CLUSTER EVENTS" as synonym for "CLUSTER EVENT" */ + else if (strcasecmp(repmgr_action, "EVENTS") == 0) + action = CLUSTER_EVENT; + } else {