[PR #11632/69b9a3f8 backport][stable-12] supervisorctl: skip no such process for all (#11652)

supervisorctl: skip no such process for all (#11632)

* feat(supervisorctl): skip no such process for all

Do not fail, if there are no matching processes for name=all

* feat(supervisorctl): add changelog

* Update 11621-skip-no_such_process-for-name-all.yml



* fix(supervisorctl): replace single quotes to double

---------



(cherry picked from commit 69b9a3f8e2)

Co-authored-by: zr0dy <58261587+zr0dy@users.noreply.github.com>
Co-authored-by: zr0dy <zr0dy@mail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2026-03-22 20:33:58 +01:00
committed by GitHub
parent a425d16e7c
commit 919d27676c
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
minor_changes:
- supervisorctl - added an additional condition for generating the error 'no such process' (https://github.com/ansible-collections/community.general/issues/11621, https://github.com/ansible-collections/community.general/pull/11632).

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":