mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-22 04:40:43 +00:00
ignore missing auto escaping in jinja2
This commit is contained in:
parent
c20a39c772
commit
5946f5810e
@ -110,12 +110,11 @@ class Generator:
|
|||||||
data = template.read()
|
data = template.read()
|
||||||
if data is not None:
|
if data is not None:
|
||||||
try:
|
try:
|
||||||
# print(json.dumps(role_data, indent=4, sort_keys=True))
|
jenv = Environment( # nosec
|
||||||
jenv = Environment(
|
|
||||||
loader=FileSystemLoader(self.config.get_template()),
|
loader=FileSystemLoader(self.config.get_template()),
|
||||||
lstrip_blocks=True,
|
lstrip_blocks=True,
|
||||||
trim_blocks=True
|
trim_blocks=True
|
||||||
) # nosec
|
)
|
||||||
jenv.filters["to_nice_yaml"] = self._to_nice_yaml
|
jenv.filters["to_nice_yaml"] = self._to_nice_yaml
|
||||||
jenv.filters["deep_get"] = self._deep_get
|
jenv.filters["deep_get"] = self._deep_get
|
||||||
jenv.filters["save_join"] = self._save_join
|
jenv.filters["save_join"] = self._save_join
|
||||||
|
Loading…
Reference in New Issue
Block a user