From d02b0d62185018521cd8e14e550af72551b15ae9 Mon Sep 17 00:00:00 2001 From: hagbard Date: Fri, 6 Dec 2019 08:07:25 -0800 Subject: syslog: code formatting --- src/conf_mode/system-syslog.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/conf_mode/system-syslog.py') diff --git a/src/conf_mode/system-syslog.py b/src/conf_mode/system-syslog.py index 950a185bc..4f0a54962 100755 --- a/src/conf_mode/system-syslog.py +++ b/src/conf_mode/system-syslog.py @@ -203,7 +203,8 @@ def get_config(): } ) if c.exists('host ' + rhost + ' port'): - config_data['hosts'][rhost]['port'] = c.return_value(['host', rhost, 'port']) + config_data['hosts'][rhost][ + 'port'] = c.return_value(['host', rhost, 'port']) # set system syslog user if c.exists('user'): @@ -273,7 +274,7 @@ def verify(c): if c == None: return None - ### may be obsolete + # may be obsolete # /etc/rsyslog.conf is generated somewhere and copied over the original (exists in /opt/vyatta/etc/rsyslog.conf) # it interferes with the global logging, to make sure we are using a single base, template is enforced here # @@ -285,7 +286,7 @@ def verify(c): # /var/log/vyos-rsyslog were the old files, we may want to clean those up, but currently there # is a chance that someone still needs it, so I don't automatically remove # them - ### + # if c == None: return None -- cgit v1.2.3