diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-05 18:51:21 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-05 18:51:21 +0200 |
commit | ea6fb514b0c6cd85f6aab7e56e87aab0982ea150 (patch) | |
tree | 01b57dccf4a2575064667f594e208d228dde9d79 /src/conf_mode/accel_l2tp.py | |
parent | 1f0f41db4495bf5a1cf999bff108f8d3b67e45b5 (diff) | |
download | vyos-1x-ea6fb514b0c6cd85f6aab7e56e87aab0982ea150.tar.gz vyos-1x-ea6fb514b0c6cd85f6aab7e56e87aab0982ea150.zip |
l2tp: T2230: add Jinja2 trim_blocks Environment option
Diffstat (limited to 'src/conf_mode/accel_l2tp.py')
-rwxr-xr-x | src/conf_mode/accel_l2tp.py | 2 |
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: |