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

reviewable/pr18780/r1
Michael DeHaan 12 years ago
parent f7f4743746
commit 2488b2dfbc

@ -744,7 +744,7 @@ def main():
else: else:
# as we may have just bounced the service the service command may not # 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 # 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' result['state'] = 'started'
else: else:
result['state'] = 'stopped' result['state'] = 'stopped'

Loading…
Cancel
Save