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

(cherry picked from commit e933d9d8a6)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/82061/head
Matt Clay 1 year ago
parent 00f74e03b2
commit 31aac52a72

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