mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-19 23:31:27 +00:00
Keep 'process' lowercase to protect against upstream changes
This commit is contained in:
@@ -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 ''
|
||||
|
||||
Reference in New Issue
Block a user