]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/CLI/pct.pm
pct cpuset: use limiting cgroup
[pve-container.git] / src / PVE / CLI / pct.pm
index 8c40bbeb5dcd3ef630aaf2cb2892ddedc6fd077e..23e8db051756363e3d23ffab6b2bd26508074136 100755 (executable)
@@ -711,9 +711,9 @@ __PACKAGE__->register_method ({
            my $cgroup = PVE::LXC::CGroup->new($vmid);
 
            my ($cpuset, $path);
-           if (defined($path = $cgroup->get_path('cpuset'))) {
+           if (defined($path = $cgroup->get_path('cpuset', 1))) {
                $cpuset = eval { PVE::CpuSet->new_from_path($path); };
-           } elsif (defined($path = $cgroup->get_path())) {
+           } elsif (defined($path = $cgroup->get_path(undef, 1))) {
                $cpuset = eval { PVE::CpuSet->new_from_path($path); };
            } else {
                # Container not running.