summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-12-06 08:07:25 -0800
committerhagbard <vyosdev@derith.de>2019-12-06 08:07:25 -0800
commitd02b0d62185018521cd8e14e550af72551b15ae9 (patch)
tree9bb49c0ae56fa39d9b3a18db24e72a7c10c9cbd1
parent123e7f8c07f56ad868604bcb42f8da095f97b2c9 (diff)
downloadvyos-1x-d02b0d62185018521cd8e14e550af72551b15ae9.tar.gz
vyos-1x-d02b0d62185018521cd8e14e550af72551b15ae9.zip
syslog: code formatting
-rwxr-xr-xsrc/conf_mode/system-syslog.py7
1 files changed, 4 insertions, 3 deletions
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