Set autoscape to True in Jinja2 environment 85/12185/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 8 Jun 2022 14:19:28 +0000 (16:19 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 8 Jun 2022 14:19:53 +0000 (16:19 +0200)
Change-Id: I364c59c121cee386632f6a8f6742f2a0f1da65b4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/common/package_tool.py

index fe058db..985a447 100644 (file)
@@ -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 = {