summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 20:46:44 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 20:47:07 +0200
commit5ec208ed9ee060f7c1a7707dc2369c83657196e8 (patch)
tree59419760dd18a2f65b621746910e9c2fa47d4edf /src
parentf38ce741c2852e4eaeeaa23736960d9a717b600f (diff)
downloadvyos-1x-5ec208ed9ee060f7c1a7707dc2369c83657196e8.tar.gz
vyos-1x-5ec208ed9ee060f7c1a7707dc2369c83657196e8.zip
http: api: T4353: fix Jinja2 linting errors
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/http-api.py2
-rwxr-xr-xsrc/conf_mode/https.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/http-api.py b/src/conf_mode/http-api.py
index 00f3d4f7f..4a7906c17 100755
--- a/src/conf_mode/http-api.py
+++ b/src/conf_mode/http-api.py
@@ -117,7 +117,7 @@ def generate(http_api):
with open(api_conf_file, 'w') as f:
json.dump(http_api, f, indent=2)
- render(systemd_service, 'https/vyos-http-api.service.tmpl', http_api)
+ render(systemd_service, 'https/vyos-http-api.service.j2', http_api)
return None
def apply(http_api):
diff --git a/src/conf_mode/https.py b/src/conf_mode/https.py
index 37fa36797..3057357fc 100755
--- a/src/conf_mode/https.py
+++ b/src/conf_mode/https.py
@@ -214,8 +214,8 @@ def generate(https):
'certbot': certbot
}
- render(config_file, 'https/nginx.default.tmpl', data)
- render(systemd_override, 'https/override.conf.tmpl', https)
+ render(config_file, 'https/nginx.default.j2', data)
+ render(systemd_override, 'https/override.conf.j2', https)
return None
def apply(https):