From e17cc1f266ae150d420db6d9177ed5a70ba362b1 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 8 Jun 2022 16:19:28 +0200 Subject: [PATCH] Set autoscape to True in Jinja2 environment Change-Id: I364c59c121cee386632f6a8f6742f2a0f1da65b4 Signed-off-by: garciadeblas --- osmclient/common/package_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmclient/common/package_tool.py b/osmclient/common/package_tool.py index fe058db..985a447 100644 --- a/osmclient/common/package_tool.py +++ b/osmclient/common/package_tool.py @@ -81,7 +81,7 @@ class PackageTool(object): self._logger.debug("") # print("location: {}".format(osmclient.__path__)) file_loader = PackageLoader("osmclient") - env = Environment(loader=file_loader) + env = Environment(loader=file_loader, autoscape=True) if package_type == "ns": template = env.get_template("nsd.yaml.j2" if not old else "nsd_old.yaml.j2") content = { -- 2.25.1