1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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 624a952c5c
commit 0380ba7177

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'