diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-05 18:51:35 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-05 18:51:35 +0200 |
commit | e6295b3334a8a792717ca02237d9db500490e081 (patch) | |
tree | 8984dde5eeac1cd0252f66396f4ceea3c441642c /src | |
parent | ea6fb514b0c6cd85f6aab7e56e87aab0982ea150 (diff) | |
download | vyos-1x-e6295b3334a8a792717ca02237d9db500490e081.tar.gz vyos-1x-e6295b3334a8a792717ca02237d9db500490e081.zip |
ssh: T2230: add Jinja2 trim_blocks Environment option
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/ssh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/ssh.py b/src/conf_mode/ssh.py index b5112ae71..014045796 100755 --- a/src/conf_mode/ssh.py +++ b/src/conf_mode/ssh.py @@ -121,7 +121,7 @@ def generate(ssh): # Prepare Jinja2 template loader from files tmpl_path = os.path.join(vyos_data_dir['data'], 'templates', 'ssh') fs_loader = FileSystemLoader(tmpl_path) - env = Environment(loader=fs_loader) + env = Environment(loader=fs_loader, trim_blocks=True) tmpl = env.get_template('sshd_config.tmpl') config_text = tmpl.render(ssh) |