Commit bfb1d469 by James Cammarata

Checking for a transitional running state in supervisorctl

Fixes #3977
parent 28556845
...@@ -151,7 +151,7 @@ def main(): ...@@ -151,7 +151,7 @@ def main():
module.exit_json(changed=False, name=name, state=state) module.exit_json(changed=False, name=name, state=state)
rc, out, err = run_supervisorctl('status', name) rc, out, err = run_supervisorctl('status', name)
running = 'RUNNING' in out running = 'RUNNING' in out or '(already running)' in out
if running and state == 'started': if running and state == 'started':
module.exit_json(changed=False, name=name, state=state) module.exit_json(changed=False, name=name, state=state)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment