]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cli: add severity in "set server addr" parser
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 09:17:49 +0000 (10:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 09:17:49 +0000 (10:17 +0100)
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.

src/server.c

index 3265680417d1a91eeacaf846eea93cf4dce088f7..11fe69788ac881686bbc52c01c6253a3d04fb7b7 100644 (file)
@@ -4204,6 +4204,7 @@ static int cli_parse_set_server(char **args, struct appctx *appctx, void *privat
        }
        else if (strcmp(args[3], "fqdn") == 0) {
                if (!*args[4]) {
+                       appctx->ctx.cli.severity = LOG_ERR;
                        appctx->ctx.cli.msg = "set server <b>/<s> fqdn requires a FQDN.\n";
                        appctx->st0 = CLI_ST_PRINT;
                        SPIN_UNLOCK(SERVER_LOCK, &sv->lock);