mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-21 20:59:10 +00:00
Merge 7dc8559326 into bc22fbcaa0
This commit is contained in:
commit
1b90bc152a
2 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue