From 9f78b695a7c3eb8f6c3e7a462ede55cae8dfd67e Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 23 Oct 2019 16:09:36 +0200 Subject: [PATCH] vmstatus: code cleanup: directly use load_config helper Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index dbac6957..51440150 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3132,8 +3132,7 @@ sub vmstatus { foreach my $vmid (keys %$list) { next if $opt_vmid && ($vmid ne $opt_vmid); - my $cfspath = PVE::QemuConfig->cfs_config_path($vmid); - my $conf = PVE::Cluster::cfs_read_file($cfspath) || {}; + my $conf = PVE::QemuConfig->load_config($vmid); my $d = { vmid => $vmid }; $d->{pid} = $list->{$vmid}->{pid};