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

(cherry picked from commit e933d9d8a6)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/82111/head
Matt Clay 1 year ago
parent 9a3ca0b08c
commit d9160f6005

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

@ -41,7 +41,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