]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: vars: Parse optional conditions passed to the set-var converter
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 16 Dec 2021 16:14:37 +0000 (17:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Dec 2021 16:31:55 +0000 (17:31 +0100)
commit51899d251c799f1959190ce04945c232de06b48b
treed3e9c56f6a8e5ac66bedc4d7ffa18fb083ff017b
parent25fccd52ac6efb6788bad1769947ee6825713c86
MINOR: vars: Parse optional conditions passed to the set-var converter

This patch adds the parsing of the optional condition parameters that
can be passed to the set-var converter. Those conditions will not be
taken into account yet in the var_set function so conditions passed as
parameters will not have any effect. This is true for any condition
apart from the "ifexists" one that is also used to replace the
VF_UPDATEONLY flag that was used to prevent proc scope variable creation
from a LUA module.
include/haproxy/vars-t.h
src/vars.c