[stable-2.14] ansible-test - Fix parsing of cgroup entries

(cherry picked from commit e933d9d8a6)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/82100/head
Matt Clay 1 year ago
parent 093d26b2a2
commit 6bf67bb4c8

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