From 2488b2dfbcf495f0299ffe3d6d8787851c09b0e3 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 23 Feb 2013 22:28:57 -0500 Subject: [PATCH] If running is given as the state value instead of 'started', still return the correct end state. --- service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service b/service index 5fb3f1e9e1a..7c1da7972e7 100644 --- a/service +++ b/service @@ -744,7 +744,7 @@ def main(): else: # as we may have just bounced the service the service command may not # report accurate state at this moment so just show what we ran - if service.module.params['state'] in ['started','restarted']: + if service.module.params['state'] in ['started','restarted','running']: result['state'] = 'started' else: result['state'] = 'stopped'