mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Changed status() to be case-sensitive of process
This commit is contained in:
@@ -75,8 +75,8 @@ def main():
|
||||
# Sample output lines:
|
||||
# Process 'name' Running
|
||||
# Process 'name' Running - restart pending
|
||||
parts = line.lower().split()
|
||||
if len(parts) > 2 and parts[0] == 'process' and parts[1] == "'%s'" % name:
|
||||
parts = line.split()
|
||||
if len(parts) > 2 and parts[0] == 'Process' and parts[1] == "'%s'" % name:
|
||||
return ' '.join(parts[2:])
|
||||
else:
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user