diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-15 21:57:03 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-15 21:57:03 +0200 |
commit | abfe42d11137373f6549d17e69618840d574e524 (patch) | |
tree | 429a9520d54977a8dd307005be122b0b4b91ee14 /src/conf_mode/dhcp_server.py | |
parent | c2b54ed6d1dc49a908e77d5fd96a2f4e2e01f887 (diff) | |
download | vyos-1x-abfe42d11137373f6549d17e69618840d574e524.tar.gz vyos-1x-abfe42d11137373f6549d17e69618840d574e524.zip |
dhcp(v6)-server: T4353: fix Jinja2 linting errors
Diffstat (limited to 'src/conf_mode/dhcp_server.py')
-rwxr-xr-x | src/conf_mode/dhcp_server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index d27f8d995..52b682d6d 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -286,7 +286,7 @@ def generate(dhcp): # Please see: https://phabricator.vyos.net/T1129 for quoting of the raw # parameters we can pass to ISC DHCPd tmp_file = '/tmp/dhcpd.conf' - render(tmp_file, 'dhcp-server/dhcpd.conf.tmpl', dhcp, + render(tmp_file, 'dhcp-server/dhcpd.conf.j2', dhcp, formater=lambda _: _.replace(""", '"')) # XXX: as we have the ability for a user to pass in "raw" options via VyOS # CLI (see T3544) we now ask ISC dhcpd to test the newly rendered @@ -299,7 +299,7 @@ def generate(dhcp): # Now that we know that the newly rendered configuration is "good" we can # render the "real" configuration - render(config_file, 'dhcp-server/dhcpd.conf.tmpl', dhcp, + render(config_file, 'dhcp-server/dhcpd.conf.j2', dhcp, formater=lambda _: _.replace(""", '"')) return None |