BUG/MINOR: servers: Don't make "server" in a frontend fatal.

When parsing the configuration, if "server", "default-server" or
"server-template" are found in a frontend, we first warn that it will be
ignored, only to be considered a fatal error later. Be true to our word, and
just ignore it.

This should be backported to 1.8 and 1.7.
This commit is contained in:
Olivier Houchard 2018-07-24 16:48:59 +02:00 committed by Willy Tarreau
parent 055ba4f505
commit 306e653331

View File

@ -1937,7 +1937,7 @@ int parse_server(const char *file, int linenum, char **args, struct proxy *curpr
goto out; goto out;
} }
else if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL)) else if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL))
err_code |= ERR_ALERT | ERR_FATAL; err_code |= ERR_WARN;
/* There is no mandatory first arguments for default server. */ /* There is no mandatory first arguments for default server. */
if (srv) { if (srv) {