summaryrefslogtreecommitdiff
path: root/src/conf_mode/syslog.py
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-04-27 18:40:32 -0700
committerhagbard <vyosdev@derith.de>2019-04-27 18:40:32 -0700
commitd654990111894c0f89ca4141862775ddd7a22b76 (patch)
treeb26e08bd44ced7c9036c5382973a33c908c42a89 /src/conf_mode/syslog.py
parent6d848ec832d2911db487a2b04235759971022d47 (diff)
downloadvyos-1x-d654990111894c0f89ca4141862775ddd7a22b76.tar.gz
vyos-1x-d654990111894c0f89ca4141862775ddd7a22b76.zip
[rsyslog] T1358 - typo fixed os.path.exists
Diffstat (limited to 'src/conf_mode/syslog.py')
-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")