Re: [PATCH] MINOR: cli: add missing agent commands for set server

2021-02-18 Thread Christopher Faulet

Le 15/02/2021 à 17:22, William Dauchy a écrit :

we previously forgot to add `agent-*` commands.
Take this opportunity to rewrite the help string in a simpler way for
readability (mainly removing simple quotes)



Now merged, thanks !

--
Christopher Faulet



[PATCH] MINOR: cli: add missing agent commands for set server

2021-02-15 Thread William Dauchy
we previously forgot to add `agent-*` commands.
Take this opportunity to rewrite the help string in a simpler way for
readability (mainly removing simple quotes)

Signed-off-by: William Dauchy 
---
 src/server.c | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/server.c b/src/server.c
index da6ee52ad..1c1eeab73 100644
--- a/src/server.c
+++ b/src/server.c
@@ -4618,9 +4618,10 @@ static int cli_parse_set_server(char **args, char 
*payload, struct appctx *appct
 #endif
} else {
cli_err(appctx,
-   "'set server ' only supports 'agent', 'health', "
-   "'state', 'weight', 'addr', 'fqdn', 'check-addr', "
-   "'check-port' and 'ssl'.\n");
+   "usage: set server / "
+   "addr | agent | agent-addr | agent-port | agent-send | "
+   "check-addr | check-port | fqdn | health | ssl | "
+   "state | weight\n");
}
  out_unlock:
HA_SPIN_UNLOCK(SERVER_LOCK, &sv->lock);
-- 
2.30.0