summaryrefslogtreecommitdiff
path: root/src/conf_mode/vpn_sstp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-05 18:51:43 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-05 18:51:43 +0200
commit6a0d923e2ecebc1f682241403179770d291478f3 (patch)
treed98d55fe7810cb3cc833f1b2d83e88f664745dae /src/conf_mode/vpn_sstp.py
parente6295b3334a8a792717ca02237d9db500490e081 (diff)
downloadvyos-1x-6a0d923e2ecebc1f682241403179770d291478f3.tar.gz
vyos-1x-6a0d923e2ecebc1f682241403179770d291478f3.zip
sstp: T2230: add Jinja2 trim_blocks Environment option
Diffstat (limited to 'src/conf_mode/vpn_sstp.py')
-rwxr-xr-xsrc/conf_mode/vpn_sstp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vpn_sstp.py b/src/conf_mode/vpn_sstp.py
index 2856ffafa..66b1822df 100755
--- a/src/conf_mode/vpn_sstp.py
+++ b/src/conf_mode/vpn_sstp.py
@@ -339,7 +339,7 @@ def generate(sstp):
# Prepare Jinja2 template loader from files
tmpl_path = os.path.join(vyos_data_dir['data'], 'templates', 'sstp')
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
tmpl = env.get_template('sstp.config.tmpl')