summaryrefslogtreecommitdiff
path: root/src/conf_mode/system-syslog.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 20:38:04 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 20:38:04 +0200
commit780d4fe16cd8471ca4fd27ba43fea998ef0240f0 (patch)
tree8a0a29aec78d2475bbb13130f181a04da26d9dea /src/conf_mode/system-syslog.py
parentb6a307424451b197d57265f17692ba2033a0ff7f (diff)
downloadvyos-1x-780d4fe16cd8471ca4fd27ba43fea998ef0240f0.tar.gz
vyos-1x-780d4fe16cd8471ca4fd27ba43fea998ef0240f0.zip
syslog: T4353: fix Jinja2 linting errors
Diffstat (limited to 'src/conf_mode/system-syslog.py')
-rwxr-xr-xsrc/conf_mode/system-syslog.py4
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):