mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #40226 from terminalmage/issue40149
Fix wrong errno in systemd.py
This commit is contained in:
commit
35ced607dd
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue