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:
parent
624a952c5c
commit
0380ba7177
1 changed files with 1 additions and 1 deletions
|
@ -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