[pve-devel] [PATCH container 5/5] command: get_cgroup_path: handle undef subsystem
Wolfgang Bumiller
w.bumiller at proxmox.com
Mon Apr 6 09:50:46 CEST 2020
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
src/PVE/LXC/Command.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/LXC/Command.pm b/src/PVE/LXC/Command.pm
index 825c354..0a52d47 100644
--- a/src/PVE/LXC/Command.pm
+++ b/src/PVE/LXC/Command.pm
@@ -165,7 +165,7 @@ sub get_cgroup_path($;$$) {
my ($res, $data) = simple_command(
$vmid,
$limiting ? LXC_CMD_GET_LIMITING_CGROUP : LXC_CMD_GET_CGROUP,
- pack('Z*', $subsystem),
+ defined($subsystem) && pack('Z*', $subsystem),
);
return undef if !defined $res;
--
2.20.1
More information about the pve-devel
mailing list