]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/cgroup: Fix typo in CgroupMount::__init__
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 16 Oct 2024 09:11:32 +0000 (14:41 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 21 Oct 2024 14:18:03 +0000 (08:18 -0600)
Fix the typo of '==' (comparison) to '=' assignment in
CgroupMount::__init__.

Fixes: 52b196c2f4f3c ("ftests/cgroup: Add support for favordynmods")
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/cgroup.py

index 828e7e3ad3d9cae459eb20f767e9b7ee07b74cd4..ba33d108f9ed839079be7c962da5a9a1227f9829 100644 (file)
@@ -43,7 +43,7 @@ class CgroupMount(object):
                 # cgroup v1 will append mount points with favordynmods,
                 # remove it.
                 if self.controller == 'favordynmods':
-                    self.controller == entries[3].split(',')[-2]
+                    self.controller = entries[3].split(',')[-2]
 
                 if self.controller == 'clone_children':
                     # the cpuset controller may append this option to the end