Set available variables before evaluating the condition

This commit is contained in:
Emmanuel BENOîT 2022-10-07 15:21:41 +02:00
parent 8ec5f57f6e
commit 0001c775d6
No known key found for this signature in database
GPG key ID: 2356DC6956CF54EF

View file

@ -565,6 +565,7 @@ class RcInstruction(abc.ABC):
if self._condition is None:
return True
t = self._templar
t.available_variables = variables
template = "%s%s%s" % (
t.environment.variable_start_string,
self._condition,