mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Templar: encapsulate _available_variables (#55435)
Ensure variables are reset between iterations
This commit is contained in:
parent
bd061fd632
commit
34e9d6781b
14 changed files with 47 additions and 30 deletions
|
@ -125,7 +125,7 @@ class Conditional:
|
|||
'templating delimiters such as {{ }} or {%% %%}. '
|
||||
'Found: %s' % conditional)
|
||||
# make sure the templar is using the variables specified with this method
|
||||
templar.set_available_variables(variables=all_vars)
|
||||
templar.available_variables = all_vars
|
||||
|
||||
try:
|
||||
# if the conditional is "unsafe", disable lookups
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue