diff options
author | Rob White <wimnat@gmail.com> | 2015-01-22 11:26:00 +1100 |
---|---|---|
committer | Rob White <wimnat@gmail.com> | 2015-01-22 11:26:00 +1100 |
commit | 13285765a8a41381e214d171813fc715b6cc728d (patch) | |
tree | ed926df18a790ae224069919c11ea308f80cdb95 /monitoring/monit.py | |
parent | 0f4502982728af13e5b1ba12b470d2c76d776972 (diff) | |
download | ansible-modules-extras-13285765a8a41381e214d171813fc715b6cc728d.tar.gz |
Keep 'process' lowercase to protect against upstream changes
Diffstat (limited to 'monitoring/monit.py')
-rw-r--r-- | monitoring/monit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitoring/monit.py b/monitoring/monit.py index b1c1b945..8772d22b 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 '' |