If running is given as the state value instead of 'started', still return the correct end state.
This commit is contained in:
parent
f7f4743746
commit
2488b2dfbc
1 changed files with 1 additions and 1 deletions
2
service
2
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'
|
||||
|
|
Loading…
Reference in a new issue