Merge pull request #40226 from terminalmage/issue40149

Fix wrong errno in systemd.py
This commit is contained in:
Mike Place 2017-03-22 16:31:41 -06:00 committed by GitHub
commit 35ced607dd

View file

@ -205,7 +205,7 @@ def _get_sysv_services():
try:
sysv_services = os.listdir(INITSCRIPT_PATH)
except OSError as exc:
if exc.errno == errno.EEXIST:
if exc.errno == errno.ENOENT:
pass
elif exc.errno == errno.EACCES:
log.error(