summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-04-27 18:40:32 -0700
committerDaniil Baturin <daniil@baturin.org>2019-05-26 15:14:42 +0200
commit60e13f5cca3e89c14db0c5fef4c21b271e57dbce (patch)
tree883fcb027bc4ee3caece15a272e1db5ce938227c /src/conf_mode
parentb4b00cb88810ad50d3fc24b0da3a58ef7cf2df9c (diff)
downloadvyos-1x-60e13f5cca3e89c14db0c5fef4c21b271e57dbce.tar.gz
vyos-1x-60e13f5cca3e89c14db0c5fef4c21b271e57dbce.zip
[rsyslog] T1358 - typo fixed os.path.exists
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/syslog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/syslog.py b/src/conf_mode/syslog.py
index c8541a4a0..105f35657 100755
--- a/src/conf_mode/syslog.py
+++ b/src/conf_mode/syslog.py
@@ -279,7 +279,7 @@ def verify(c):
raise ConfigError('Invalid logging level ' + s + ' set in '+ conf + ' ' + item)
def apply(c):
- if not os.path.exits('/var/run/rsyslogd.pid'):
+ if not os.path.exists('/var/run/rsyslogd.pid'):
os.system("sudo systemctl start rsyslog >/dev/null")
else:
os.system("sudo systemctl restart rsyslog >/dev/null")