Skip to content
Snippets Groups Projects
Commit 657bd21b authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Make matching of python process regexp more general. Redmine issue #6526

parent 98962f81
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ OVERALL_STATUS_MESSAGES = { ...@@ -83,7 +83,7 @@ OVERALL_STATUS_MESSAGES = {
} }
REGEXP_MENTAT_PS = re.compile(r'\s*(\d+)\s+([^\s]+)\s+([^\s]*(?:python(?:3?|3.7)))\s+[^\s]+(mentat-[^\s]+)(?:\s+(.*))?') REGEXP_MENTAT_PS = re.compile(r'\s*(\d+)\s+([^\s]+)\s+([^\s]*(?:python(?:\d+(?:\.\d+)?)?))\s+[^\s]+(mentat-[^\s]+)(?:\s+(.*))?')
"""Regular expression for selecting Mentat related processes.""" """Regular expression for selecting Mentat related processes."""
REGEXP_MENTAT_PIDF = re.compile(r'(.+?)(?:\.(\d+))?\.pid$') REGEXP_MENTAT_PIDF = re.compile(r'(.+?)(?:\.(\d+))?\.pid$')
"""Regular expression for selecting Mentat related PID files.""" """Regular expression for selecting Mentat related PID files."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment