Found with pylint. Fix typo when module os is used instead of sys for calling exit method
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Common/Daemon.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Common/Daemon.py b/lnst/Common/Daemon.py
index 9dd2847..6fbf950 100644
--- a/lnst/Common/Daemon.py
+++ b/lnst/Common/Daemon.py
@@ -57,7 +57,7 @@ class Daemon:
if pid:
if self._check_pid(pid):
logging.error("pidfile in use")
- os.exit(1)
+ sys.exit(1)
else:
self._del_pidfile()
try:
--
2.1.0