mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
cgroups: fix pylin bug
In: commit 454b9450 ("pylint fixes") we added: ```diff @@ -363,7 +368,7 @@ class CgroupsModule(Module): # Get the list of the available controllers subsys = self.list_subsystems() - if len(subsys) == 0: + if subsys: self.logger.warning('No CGroups controller available') return ``` which changed the invariant condition to enabled the cgroup module: the module is enabled we we can find a "non empty" list of subsystems. Let's fix this to bail out on an empyt list. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
This commit is contained in:
parent
68b418dac2
commit
241c7e01bd
@ -368,7 +368,7 @@ class CgroupsModule(Module):
|
||||
|
||||
# Get the list of the available controllers
|
||||
subsys = self.list_subsystems()
|
||||
if subsys:
|
||||
if not subsys:
|
||||
self.logger.warning('No CGroups controller available')
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user