Checking for a transitional running state in supervisorctl

Fixes #3977
reviewable/pr18780/r1
James Cammarata 11 years ago
parent 5ed73281b0
commit 2bd830369a

@ -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)

Loading…
Cancel
Save