AnsibleJ2Template should be based on NativeTemplate (#76471)

Fixes #76442

ci_complete
pull/76524/head
Martin Krizek 3 years ago committed by GitHub
parent 37c80ea893
commit 19a58859d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,12 +19,12 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import jinja2
from jinja2.nativetypes import NativeTemplate
__all__ = ['AnsibleJ2Template']
class AnsibleJ2Template(jinja2.environment.Template):
class AnsibleJ2Template(NativeTemplate):
'''
A helper class, which prevents Jinja2 from running AnsibleJ2Vars through dict().
Without this, {% include %} and similar will create new contexts unlike the special

Loading…
Cancel
Save