From f1222dadfd0b25ef62d9862f2e3b239bcfb24096 Mon Sep 17 00:00:00 2001 From: hagbard Date: Tue, 24 Jul 2018 15:23:19 -0700 Subject: 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. --- src/conf_mode/syslog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/conf_mode') 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( { -- cgit v1.2.3