summaryrefslogtreecommitdiff
path: root/src/conf_mode/syslog.py
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-07-16 12:04:47 -0700
committerDaniil Baturin <daniil@baturin.org>2019-08-31 02:55:59 +0200
commit050acd4f135ef5fc738fc32410700a4249369d1b (patch)
treefc4a365c43bf1f725248e090f1d58c12343949d6 /src/conf_mode/syslog.py
parentd7ba46851c75788622a8e79dd02b5bb8c434797e (diff)
downloadvyos-1x-050acd4f135ef5fc738fc32410700a4249369d1b.tar.gz
vyos-1x-050acd4f135ef5fc738fc32410700a4249369d1b.zip
[syslog] T1530 - "set system syslog global archive file" doesn't work
Diffstat (limited to 'src/conf_mode/syslog.py')
-rwxr-xr-xsrc/conf_mode/syslog.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/syslog.py b/src/conf_mode/syslog.py
index 105f35657..7b79c701b 100755
--- a/src/conf_mode/syslog.py
+++ b/src/conf_mode/syslog.py
@@ -72,8 +72,8 @@ logrotate_configs = '''
missingok
notifempty
create
- rotate {{files[file]['max-files']}}
- size={{ files[file]['max-size']//1024}}k
+ rotate {{files[file]['max-files']}}
+ size={{files[file]['max-size']//1024}}k
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
@@ -120,8 +120,8 @@ def get_config():
config_data['files']['global']['selectors'] = generate_selectors(c, 'global facility')
if c.exists('global archive size'):
config_data['files']['global']['max-size'] = int(c.return_value('global archive size'))* 1024
- if c.exists('global archive files'):
- config_data['files']['global']['max-files'] = c.return_value('global archive files')
+ if c.exists('global archive file'):
+ config_data['files']['global']['max-files'] = c.return_value('global archive file')
if c.exists('global preserve-fqdn'):
config_data['files']['global']['preserver_fqdn'] = True
@@ -196,7 +196,7 @@ def get_config():
}
}
)
-
+
return config_data
def generate_selectors(c, config_node):