Set available variables before evaluating the condition
This commit is contained in:
parent
8ec5f57f6e
commit
0001c775d6
1 changed files with 1 additions and 0 deletions
|
@ -565,6 +565,7 @@ class RcInstruction(abc.ABC):
|
||||||
if self._condition is None:
|
if self._condition is None:
|
||||||
return True
|
return True
|
||||||
t = self._templar
|
t = self._templar
|
||||||
|
t.available_variables = variables
|
||||||
template = "%s%s%s" % (
|
template = "%s%s%s" % (
|
||||||
t.environment.variable_start_string,
|
t.environment.variable_start_string,
|
||||||
self._condition,
|
self._condition,
|
||||||
|
|
Loading…
Reference in a new issue