summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 18:47:03 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 18:47:03 +0200
commit92f266b733a552b33ebadc6df3328d2c43c351cb (patch)
tree3a389cb0052abdcc3d800ce294d8a8ddd1ef131a
parente6af32344b1647f59543cbc659704bb9ef08be5f (diff)
downloadvyos-1x-92f266b733a552b33ebadc6df3328d2c43c351cb.tar.gz
vyos-1x-92f266b733a552b33ebadc6df3328d2c43c351cb.zip
tftp-server: T4353: fix Jinja2 linting errors
-rw-r--r--data/templates/tftp-server/default.j2 (renamed from data/templates/tftp-server/default.tmpl)1
-rwxr-xr-xsrc/conf_mode/tftp_server.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/data/templates/tftp-server/default.tmpl b/data/templates/tftp-server/default.j2
index 56784d467..b2676e0aa 100644
--- a/data/templates/tftp-server/default.tmpl
+++ b/data/templates/tftp-server/default.j2
@@ -1,3 +1,4 @@
+{# j2lint: disable=jinja-variable-format #}
### Autogenerated by tftp_server.py ###
DAEMON_ARGS="--listen --user tftp --address {{ listen_address }} {{ "--create --umask 000" if allow_upload is vyos_defined }} --secure {{ directory }}"
{% if vrf is vyos_defined %}
diff --git a/src/conf_mode/tftp_server.py b/src/conf_mode/tftp_server.py
index 95050624e..c5daccb7f 100755
--- a/src/conf_mode/tftp_server.py
+++ b/src/conf_mode/tftp_server.py
@@ -98,7 +98,7 @@ def generate(tftpd):
config['vrf'] = address_config['vrf']
file = config_file + str(idx)
- render(file, 'tftp-server/default.tmpl', config)
+ render(file, 'tftp-server/default.j2', config)
idx = idx + 1
return None