diff options
author | hagbard <vyosdev@derith.de> | 2018-07-24 15:23:19 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2018-07-24 15:23:19 -0700 |
commit | f1222dadfd0b25ef62d9862f2e3b239bcfb24096 (patch) | |
tree | d760bb2614f92625677200ee8cefe64580e1e6e9 /src | |
parent | 8c44fa7fb35f8f42621de06f8a8db5db5a83c193 (diff) | |
download | vyos-1x-f1222dadfd0b25ef62d9862f2e3b239bcfb24096.tar.gz vyos-1x-f1222dadfd0b25ef62d9862f2e3b239bcfb24096.zip |
T736: bugfix, if facility is not set by the user, it defaults to *.err,in hosts proto wouldn't have a default, actually it wouldn't exist.
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/syslog.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/conf_mode/syslog.py b/src/conf_mode/syslog.py index e4101a13b..5dfc6f390 100755 --- a/src/conf_mode/syslog.py +++ b/src/conf_mode/syslog.py @@ -153,13 +153,12 @@ def get_config(): ## set system syslog host if c.exists('host'): + proto = 'udp' rhosts = c.list_nodes('host') for rhost in rhosts: for fac in c.list_nodes('host ' + rhost + ' facility'): if c.exists('host ' + rhost + ' facility ' + fac + ' protocol'): proto = c.return_value('host ' + rhost + ' facility ' + fac + ' protocol') - else: - proto = 'udp' config_data['hosts'].update( { |