summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-pppoe.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-09 20:20:45 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-09 20:20:45 +0200
commit880108c7506ec110b7bd11dbc9b491525bad2976 (patch)
tree48dc65868b6958d664a855f22ccde239df0b4f8e /src/conf_mode/interfaces-pppoe.py
parent4254a170a397e0605a471d81a14d65e510e24811 (diff)
downloadvyos-1x-880108c7506ec110b7bd11dbc9b491525bad2976.tar.gz
vyos-1x-880108c7506ec110b7bd11dbc9b491525bad2976.zip
pppoe: enable Jinja2 trim_blocks
Diffstat (limited to 'src/conf_mode/interfaces-pppoe.py')
-rwxr-xr-xsrc/conf_mode/interfaces-pppoe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py
index 26441838e..5f073dac6 100755
--- a/src/conf_mode/interfaces-pppoe.py
+++ b/src/conf_mode/interfaces-pppoe.py
@@ -161,7 +161,7 @@ def generate(pppoe):
# Prepare Jinja2 template loader from files
tmpl_path = os.path.join(vyos_data_dir["data"], "templates", "pppoe")
fs_loader = FileSystemLoader(tmpl_path)
- env = Environment(loader=fs_loader)
+ env = Environment(loader=fs_loader, trim_blocks=True)
# set up configuration file path variables where our templates will be
# rendered into