X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=cgroups.py;fp=cgroups.py;h=b665889aa6f4b3c25c4acfb882941e9fac2ec63b;hb=e7b8a9d95fe29760aa84f23cde8c136592c92f38;hp=cbdfbe23c9ac52a3d6b4299c457332ff0435369a;hpb=e57432c1dfdfeaa52cc32799e2abbc34b7704ce9;p=nodemanager.git diff --git a/cgroups.py b/cgroups.py index cbdfbe2..b665889 100644 --- a/cgroups.py +++ b/cgroups.py @@ -71,7 +71,7 @@ def get_cgroup_paths(subsystem="cpuset"): def get_cgroup_path(name, subsystem="cpuset"): """ Returns the base path for the cgroup with a specific name or None.""" result = reduce(lambda a, b: b if os.path.basename(b) == name else a, - get_cgroup_paths(subsystem), None) + get_cgroup_paths(subsystem), None) if result is None: name = name + ".libvirt-lxc"