From d654990111894c0f89ca4141862775ddd7a22b76 Mon Sep 17 00:00:00 2001 From: hagbard Date: Sat, 27 Apr 2019 18:40:32 -0700 Subject: [rsyslog] T1358 - typo fixed os.path.exists --- src/conf_mode/syslog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode/syslog.py') 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") -- cgit v1.2.3