mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
Don't overwrite builtin jinja2 filters with tests (#37881)
* Don't overwrite builtin jinja2 filters with tests. Fixes #37856 * Fix tests and other callers of _get_filters
This commit is contained in:
parent
169209c32a
commit
1f824bd620
3 changed files with 12 additions and 4 deletions
|
@ -176,7 +176,7 @@ class Conditional:
|
|||
)
|
||||
try:
|
||||
e = templar.environment.overlay()
|
||||
e.filters.update(templar._get_filters())
|
||||
e.filters.update(templar._get_filters(e.filters))
|
||||
e.tests.update(templar._get_tests())
|
||||
|
||||
res = e._parse(conditional, None, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue