From 113c23a90fb8e364dfb34de2448c5ccb80dae952 Mon Sep 17 00:00:00 2001 From: zr0dy Date: Sat, 21 Mar 2026 23:02:42 +1000 Subject: [PATCH 1/2] feat(supervisorctl): skip no such process for all Do not fail, if there are no matching processes for name=all --- plugins/modules/supervisorctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/supervisorctl.py b/plugins/modules/supervisorctl.py index 8e181aade6..9f288fd4d4 100644 --- a/plugins/modules/supervisorctl.py +++ b/plugins/modules/supervisorctl.py @@ -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": From 7dc855932604134178bf00051804452539d65e2d Mon Sep 17 00:00:00 2001 From: zr0dy Date: Sat, 21 Mar 2026 23:18:04 +1000 Subject: [PATCH 2/2] feat(supervisorctl): add changelog --- .../fragments/11621-skip-no_such_process-for-name-all.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/11621-skip-no_such_process-for-name-all.yml diff --git a/changelogs/fragments/11621-skip-no_such_process-for-name-all.yml b/changelogs/fragments/11621-skip-no_such_process-for-name-all.yml new file mode 100644 index 0000000000..6e80939fe1 --- /dev/null +++ b/changelogs/fragments/11621-skip-no_such_process-for-name-all.yml @@ -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) \ No newline at end of file