From cf48141a33853ff2fa34acea9b0e6ffa32fca1a4 Mon Sep 17 00:00:00 2001 From: Cristobal Rosa Date: Fri, 5 Jul 2013 05:49:07 +0200 Subject: [PATCH] Fixed monit module. Ignore uppercase letters --- library/monitoring/monit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/monitoring/monit b/library/monitoring/monit index 1219186d50..dc50ecbef4 100644 --- a/library/monitoring/monit +++ b/library/monitoring/monit @@ -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)