diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-05-01 20:38:04 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-05-01 20:38:04 +0200 |
commit | 780d4fe16cd8471ca4fd27ba43fea998ef0240f0 (patch) | |
tree | 8a0a29aec78d2475bbb13130f181a04da26d9dea /src/conf_mode | |
parent | b6a307424451b197d57265f17692ba2033a0ff7f (diff) | |
download | vyos-1x-780d4fe16cd8471ca4fd27ba43fea998ef0240f0.tar.gz vyos-1x-780d4fe16cd8471ca4fd27ba43fea998ef0240f0.zip |
syslog: T4353: fix Jinja2 linting errors
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/system-syslog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/system-syslog.py b/src/conf_mode/system-syslog.py index 309b4bdb0..a9d3bbe31 100755 --- a/src/conf_mode/system-syslog.py +++ b/src/conf_mode/system-syslog.py @@ -204,7 +204,7 @@ def generate(c): return None conf = '/etc/rsyslog.d/vyos-rsyslog.conf' - render(conf, 'syslog/rsyslog.conf.tmpl', c) + render(conf, 'syslog/rsyslog.conf.j2', c) # cleanup current logrotate config files logrotate_files = Path('/etc/logrotate.d/').glob('vyos-rsyslog-generated-*') @@ -216,7 +216,7 @@ def generate(c): for filename, fileconfig in c.get('files', {}).items(): if fileconfig['log-file'].startswith('/var/log/user/'): conf = '/etc/logrotate.d/vyos-rsyslog-generated-' + filename - render(conf, 'syslog/logrotate.tmpl', { 'config_render': fileconfig }) + render(conf, 'syslog/logrotate.j2', { 'config_render': fileconfig }) def verify(c): |