mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix jinja2>=2.9 nested include vars (#35099)
This fixes a bug when parent's local vars where not available in nested includes. The bug can only be seen with jinja>=2.9 which changes how the variable scopes work. Fixes #34886
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{% if par_var is defined %}
|
||||
{% include 'for_loop_include_nested.j2' %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user