ansible/test/integration/targets/template/templates/for_loop_include.j2
Martin Krizek 63fdc3f08f
Fix jinja2>=2.9 nested include vars ()
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 
2018-02-07 10:58:29 +01:00

3 lines
83 B
Django/Jinja

{% if par_var is defined %}
{% include 'for_loop_include_nested.j2' %}
{% endif %}