summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/cgroup.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/ansible_test/_internal/cgroup.py')
-rw-r--r--test/lib/ansible_test/_internal/cgroup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_internal/cgroup.py b/test/lib/ansible_test/_internal/cgroup.py
index a08513a5..c9da2465 100644
--- a/test/lib/ansible_test/_internal/cgroup.py
+++ b/test/lib/ansible_test/_internal/cgroup.py
@@ -44,7 +44,7 @@ class CGroupEntry:
@classmethod
def parse(cls, value: str) -> CGroupEntry:
"""Parse the given cgroup line from the proc filesystem and return a cgroup entry."""
- cid, subsystem, path = value.split(':')
+ cid, subsystem, path = value.split(':', maxsplit=2)
return cls(
id=int(cid),