mirror of https://github.com/ansible/ansible.git
Globals should be accessible when importing a template without the context (#75384)
Fixes #75371pull/75413/head
parent
1b95b1e7a4
commit
5a38076568
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Jinja2 globals should be accessible even when importing a template without the context (https://github.com/ansible/ansible/issues/75371)
|
@ -0,0 +1,3 @@
|
||||
{% macro foo(bar) -%}
|
||||
{{ bar }}={{ lookup('lines', 'echo lookedup_bar') }}
|
||||
{%- endmacro %}
|
@ -0,0 +1,2 @@
|
||||
{% from 'macro_using_globals.j2' import foo %}
|
||||
{{ foo('bar') }}
|
Loading…
Reference in New Issue