From: garciadeblas Date: Wed, 8 Jun 2022 14:19:28 +0000 (+0200) Subject: Set autoscape to True in Jinja2 environment X-Git-Tag: v12.0.0rc1~11 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=e17cc1f266ae150d420db6d9177ed5a70ba362b1;p=osm%2Fosmclient.git Set autoscape to True in Jinja2 environment Change-Id: I364c59c121cee386632f6a8f6742f2a0f1da65b4 Signed-off-by: garciadeblas --- 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 = {