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
|
||||
} 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);
|
||||
|
Loading…
Reference in New Issue
Block a user