mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
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:
parent
8dd40fbde9
commit
3f4ec7d9fb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user