ignore missing auto escaping in jinja2

This commit is contained in:
Robert Kaussow 2020-04-05 23:28:39 +02:00
parent c20a39c772
commit 5946f5810e
1 changed files with 2 additions and 3 deletions

View File

@ -110,12 +110,11 @@ class Generator:
data = template.read()
if data is not None:
try:
# print(json.dumps(role_data, indent=4, sort_keys=True))
jenv = Environment(
jenv = Environment( # nosec
loader=FileSystemLoader(self.config.get_template()),
lstrip_blocks=True,
trim_blocks=True
) # nosec
)
jenv.filters["to_nice_yaml"] = self._to_nice_yaml
jenv.filters["deep_get"] = self._deep_get
jenv.filters["save_join"] = self._save_join