mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove unnecesary call
This commit is contained in:
parent
cf48141a33
commit
51166c9cfa
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ def main():
|
|||
module.exit_json(changed=False, name=name, state=state)
|
||||
|
||||
rc, out, err = module.run_command('%s summary | grep %s' % (MONIT, name))
|
||||
running = 'Running'.lower() in out.lower()
|
||||
running = 'running' in out.lower()
|
||||
|
||||
if running and (state == 'started' or state == 'monitored'):
|
||||
module.exit_json(changed=False, name=name, state=state)
|
||||
|
|
Loading…
Reference in a new issue