summaryrefslogtreecommitdiff
path: root/lib/ansible
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2022-04-07 17:46:38 +0200
committerGitHub <noreply@github.com>2022-04-07 10:46:38 -0500
commitbd1da60bf2063919c2b4c13176c2288dca34f920 (patch)
tree3f3daec6a6858779e31ddbe12582a89f0edaba3f /lib/ansible
parent30f96bb75e42059ab826f2e9d883e627c69807c5 (diff)
downloadansible-bd1da60bf2063919c2b4c13176c2288dca34f920.tar.gz
Ensure correct environment_class is set on Template (#77485) (#77488)
(cherry picked from commit c7e198b907e2b3842270252e6fc94e32388e18e3)
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/template/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py
index dbc15063e4..e605a7f6e9 100644
--- a/lib/ansible/template/__init__.py
+++ b/lib/ansible/template/__init__.py
@@ -674,6 +674,7 @@ class Templar:
extensions=self._get_extensions(),
loader=FileSystemLoader(loader.get_basedir() if loader else '.'),
)
+ self.environment.template_class.environment_class = environment_class
# jinja2 global is inconsistent across versions, this normalizes them
self.environment.globals['dict'] = dict