From e6eb7d47eb345828db3ba8687d8561b30de3c2f1 Mon Sep 17 00:00:00 2001 From: Rob White Date: Thu, 22 Jan 2015 11:26:00 +1100 Subject: [PATCH] Keep 'process' lowercase to protect against upstream changes --- lib/ansible/modules/extras/monitoring/monit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/monitoring/monit.py b/lib/ansible/modules/extras/monitoring/monit.py index b1c1b9453cd..8772d22b2d8 100644 --- a/lib/ansible/modules/extras/monitoring/monit.py +++ b/lib/ansible/modules/extras/monitoring/monit.py @@ -76,7 +76,7 @@ def main(): # Process 'name' Running # Process 'name' Running - restart pending parts = line.split() - if len(parts) > 2 and parts[0] == 'Process' and parts[1] == "'%s'" % name: + if len(parts) > 2 and parts[0].lower() == 'process' and parts[1] == "'%s'" % name: return ' '.join(parts[2:]) else: return ''