From 3e5b8644ca54eb42c7c739aafdbffe7cf270ca09 Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Thu, 16 Jan 2020 14:35:58 +0100 Subject: [PATCH] vmstatus: Align name if not set in config to VMs VMs have a space in between VM and the VMID. Signed-off-by: Aaron Lauterer Signed-off-by: Wolfgang Bumiller --- src/PVE/LXC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 34949c6..81d2dd4 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -197,7 +197,7 @@ sub vmstatus { $unprivileged->{$vmid} = $conf->{unprivileged}; - $d->{name} = $conf->{'hostname'} || "CT$vmid"; + $d->{name} = $conf->{'hostname'} || "CT $vmid"; $d->{name} =~ s/[\s]//g; $d->{cpus} = $conf->{cores} || $conf->{cpulimit}; -- 2.39.2