From 13285765a8a41381e214d171813fc715b6cc728d 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 --- monitoring/monit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/monit.py b/monitoring/monit.py index b1c1b9453cd..8772d22b2d8 100644 --- a/monitoring/monit.py +++ b/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 ''