If running is given as the state value instead of 'started', still return the correct end state.

This commit is contained in:
Michael DeHaan 2013-02-23 22:28:57 -05:00
parent f7f4743746
commit 2488b2dfbc

View file

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