ansible-test - Fix parsing of cgroup entries

pull/82047/head
Matt Clay 8 months ago
parent 09d943445c
commit e933d9d8a6

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Fix parsing of cgroup entries which contain a ``:`` in the path (https://github.com/ansible/ansible/issues/81977).

@ -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),

Loading…
Cancel
Save