1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-21 20:59:10 +00:00

feat(supervisorctl): skip no such process for all

Do not fail, if there are no matching processes for name=all
This commit is contained in:
zr0dy 2026-03-21 23:02:42 +10:00
parent bc22fbcaa0
commit 113c23a90f

View file

@ -273,7 +273,7 @@ def main():
module.fail_json(msg=out, name=name, state=state)
# from this point onwards, if there are no matching processes, module cannot go on.
if len(processes) == 0:
if len(processes) == 0 and name != 'all':
module.fail_json(name=name, msg="ERROR (no such process)")
if state == "started":