mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
dict is dict (#54057)
This commit is contained in:
parent
05bca95ab1
commit
d1a688b1d7
2 changed files with 5 additions and 0 deletions
2
changelogs/fragments/dict_is_dict.yml
Normal file
2
changelogs/fragments/dict_is_dict.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- allow 'dict()' jinja2 global to function the same even though it has changed in jinja2 versions
|
|
@ -690,6 +690,9 @@ class Templar:
|
||||||
else:
|
else:
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
# jinja2 global is inconsistent across versions, this normalizes them
|
||||||
|
t.globals['dict'] = dict
|
||||||
|
|
||||||
if disable_lookups:
|
if disable_lookups:
|
||||||
t.globals['query'] = t.globals['q'] = t.globals['lookup'] = self._fail_lookup
|
t.globals['query'] = t.globals['q'] = t.globals['lookup'] = self._fail_lookup
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue