summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/conf_mode/syslog.py3
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(
{