summaryrefslogtreecommitdiff
path: root/src/conf_mode/syslog.py
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-07-16 12:04:47 -0700
committerhagbard <vyosdev@derith.de>2019-07-16 12:04:47 -0700
commit016524841da12b68468468cf8f4947b82213ffcd (patch)
tree034c3214eb7d008e4d831f232f2f4921ceb57c18 /src/conf_mode/syslog.py
parent334677572aef752b0bf2c893bd14bdf6f801bb4b (diff)
downloadvyos-1x-016524841da12b68468468cf8f4947b82213ffcd.tar.gz
vyos-1x-016524841da12b68468468cf8f4947b82213ffcd.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):