ansible/test/integration/targets/template/templates/for_loop.j2
Martin Krizek 63fdc3f08f
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
2018-02-07 10:58:29 +01:00

4 lines
83 B
Django/Jinja

{% for par_var in parent_vars %}
{% include 'for_loop_include.j2' %}
{% endfor %}