Commit 863b88ba by Michael DeHaan

Merge pull request #3472 from cristobalrosa/release1.2.2

Fixed monit module. Ignore uppercase letters
parents 1b3d1125 1f2136b6
......@@ -85,7 +85,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' in out.lower()
if running and (state == 'started' or state == 'monitored'):
module.exit_json(changed=False, name=name, state=state)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment