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
} else {
cli_err(appctx,
"'set server <srv>' only supports 'agent', 'health', "
"'state', 'weight', 'addr', 'fqdn', 'check-addr', "
"'check-port' and 'ssl'.\n");
"usage: set server <backend>/<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);