MINOR: cli: add missing agent commands for set server

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 <wdauchy@gmail.com>
This commit is contained in:
William Dauchy 2021-02-15 17:22:16 +01:00 committed by Christopher Faulet
parent 8dd40fbde9
commit 3f4ec7d9fb

View File

@ -4619,9 +4619,10 @@ static int cli_parse_set_server(char **args, char *payload, struct appctx *appct
#endif #endif
} else { } else {
cli_err(appctx, cli_err(appctx,
"'set server <srv>' only supports 'agent', 'health', " "usage: set server <backend>/<server> "
"'state', 'weight', 'addr', 'fqdn', 'check-addr', " "addr | agent | agent-addr | agent-port | agent-send | "
"'check-port' and 'ssl'.\n"); "check-addr | check-port | fqdn | health | ssl | "
"state | weight\n");
} }
out_unlock: out_unlock:
HA_SPIN_UNLOCK(SERVER_LOCK, &sv->lock); HA_SPIN_UNLOCK(SERVER_LOCK, &sv->lock);