mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +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:
parent
bc22fbcaa0
commit
113c23a90f
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ def main():
|
||||||
module.fail_json(msg=out, name=name, state=state)
|
module.fail_json(msg=out, name=name, state=state)
|
||||||
|
|
||||||
# from this point onwards, if there are no matching processes, module cannot go on.
|
# 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)")
|
module.fail_json(name=name, msg="ERROR (no such process)")
|
||||||
|
|
||||||
if state == "started":
|
if state == "started":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue