mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fixed monit module. Ignore uppercase letters
This commit is contained in:
@@ -87,7 +87,7 @@ def main():
|
|||||||
module.exit_json(changed=False, name=name, state=state)
|
module.exit_json(changed=False, name=name, state=state)
|
||||||
|
|
||||||
rc, out, err = module.run_command('%s summary | grep %s' % (MONIT, name))
|
rc, out, err = module.run_command('%s summary | grep %s' % (MONIT, name))
|
||||||
running = 'Running' in out
|
running = 'Running'.lower() in out.lower()
|
||||||
|
|
||||||
if running and (state == 'started' or state == 'monitored'):
|
if running and (state == 'started' or state == 'monitored'):
|
||||||
module.exit_json(changed=False, name=name, state=state)
|
module.exit_json(changed=False, name=name, state=state)
|
||||||
|
|||||||
Reference in New Issue
Block a user