From bfb1d469e66f1ee493d29590a366957a01d3a915 Mon Sep 17 00:00:00 2001
From: James Cammarata <jcammarata@ansibleworks.com>
Date: Tue, 19 Nov 2013 14:54:20 -0600
Subject: [PATCH] Checking for a transitional running state in supervisorctl

Fixes #3977
---
 library/web_infrastructure/supervisorctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/web_infrastructure/supervisorctl b/library/web_infrastructure/supervisorctl
index a907c66..b40e0d4 100644
--- a/library/web_infrastructure/supervisorctl
+++ b/library/web_infrastructure/supervisorctl
@@ -151,7 +151,7 @@ def main():
         module.exit_json(changed=False, name=name, state=state)
 
     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':
         module.exit_json(changed=False, name=name, state=state)
--
libgit2 0.26.0