From 6a0d923e2ecebc1f682241403179770d291478f3 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 5 Apr 2020 18:51:43 +0200 Subject: sstp: T2230: add Jinja2 trim_blocks Environment option --- src/conf_mode/vpn_sstp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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') -- cgit v1.2.3