mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
BUG/MINOR: cli: add severity in "set server addr" parser
Commit c3680ec ("MINOR: add severity information to cli feedback messages") introduced a severity level to CLI messages, but one of them was missed on "set server addr". No backport is needed.
This commit is contained in:
parent
62ac84f843
commit
a075258a2c
@ -4204,6 +4204,7 @@ static int cli_parse_set_server(char **args, struct appctx *appctx, void *privat
|
|||||||
}
|
}
|
||||||
else if (strcmp(args[3], "fqdn") == 0) {
|
else if (strcmp(args[3], "fqdn") == 0) {
|
||||||
if (!*args[4]) {
|
if (!*args[4]) {
|
||||||
|
appctx->ctx.cli.severity = LOG_ERR;
|
||||||
appctx->ctx.cli.msg = "set server <b>/<s> fqdn requires a FQDN.\n";
|
appctx->ctx.cli.msg = "set server <b>/<s> fqdn requires a FQDN.\n";
|
||||||
appctx->st0 = CLI_ST_PRINT;
|
appctx->st0 = CLI_ST_PRINT;
|
||||||
SPIN_UNLOCK(SERVER_LOCK, &sv->lock);
|
SPIN_UNLOCK(SERVER_LOCK, &sv->lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user