Fixed monit module. Ignore uppercase letters

This commit is contained in:
Cristobal Rosa 2013-07-05 05:49:07 +02:00
parent 1bf4a4fa97
commit cf48141a33

View file

@ -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' in out
running = 'Running'.lower() in out.lower()
if running and (state == 'started' or state == 'monitored'):
module.exit_json(changed=False, name=name, state=state)