mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 06:41:32 +02:00
BUG/MINOR: vars: do not talk about global section in CLI errors for set-var
When attempting to set a variable does not start with the "proc" scope on the CLI, we used to emit "only proc is permitted in the global section" which obviously is a leftover from the initial code. This may be backported to 2.4.
This commit is contained in:
parent
1402fef58a
commit
c767eebf1f
@ -1039,7 +1039,7 @@ static int vars_parse_cli_set_var(char **args, char *payload, struct appctx *app
|
|||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (rule.arg.vars.scope != SCOPE_PROC) {
|
if (rule.arg.vars.scope != SCOPE_PROC) {
|
||||||
memprintf(&err, "'%s %s': cannot set variable '%s', only scope 'proc' is permitted in the global section.", args[0], args[1], args[2]);
|
memprintf(&err, "'%s %s': cannot set variable '%s', only scope 'proc' is permitted here.", args[0], args[1], args[2]);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user