summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-05 18:51:21 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-05 18:51:21 +0200
commitea6fb514b0c6cd85f6aab7e56e87aab0982ea150 (patch)
tree01b57dccf4a2575064667f594e208d228dde9d79 /src
parent1f0f41db4495bf5a1cf999bff108f8d3b67e45b5 (diff)
downloadvyos-1x-ea6fb514b0c6cd85f6aab7e56e87aab0982ea150.tar.gz
vyos-1x-ea6fb514b0c6cd85f6aab7e56e87aab0982ea150.zip
l2tp: T2230: add Jinja2 trim_blocks Environment option
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/accel_l2tp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/accel_l2tp.py b/src/conf_mode/accel_l2tp.py
index 9c20cb2f3..77e1ee874 100755
--- a/src/conf_mode/accel_l2tp.py
+++ b/src/conf_mode/accel_l2tp.py
@@ -344,7 +344,7 @@ def generate(c):
# Prepare Jinja2 template loader from files
tmpl_path = os.path.join(vyos_data_dir['data'], 'templates', 'l2tp')
fs_loader = FileSystemLoader(tmpl_path)
- env = Environment(loader=fs_loader)
+ env = Environment(loader=fs_loader, trim_blocks=True)
# accel-cmd reload doesn't work so any change results in a restart of the daemon
try: