MINOR: arg: Be able to forbid unresolved args when building an argument list
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Sep 2021 06:48:56 +0000 (08:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 Oct 2021 16:07:20 +0000 (18:07 +0200)
commit026aa9c284f9a19ef0f430580ad411cd44121ff7
tree6f2aed9f9fe051fcdb2152cc2daac9f685bdf448
parent7e45ebdfa5bb1b8c6e1818b3145b33b9533473ca
MINOR: arg: Be able to forbid unresolved args when building an argument list

In make_arg_list() function, unresolved dependencies are pushed in an
argument list to be resolved later, during the configuration validity
check. It is now possible to forbid such unresolved dependencies by omitting
<al> parameter (setting it to NULL). It is usefull when the parsing context
is not the same than the running context or when the parsing context is lost
after the startup stage. For instance, an argument may be defined in
defaults section during parsing and executed in a frontend/backend section.

(cherry picked from commit 35926a16ac087ac737026206a8420a65a9fce0ca)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 45bb15f6403ece51d1bedb94110d427c1184ea34)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/acl.c
src/arg.c
src/sample.c