mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 19:19:44 +00:00
status: skip query-proxmox-support if VM is offline
otherwise pvestatd will print lots of warnings.. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
6891fd70ed
commit
e5b18771b8
@ -2750,6 +2750,8 @@ sub vmstatus {
|
||||
|
||||
foreach my $vmid (keys %$list) {
|
||||
next if $opt_vmid && ($vmid ne $opt_vmid);
|
||||
next if !$res->{$vmid}->{pid}; #not running
|
||||
|
||||
# we can't use the $qmpclient since it might have already aborted on
|
||||
# 'query-balloon', but this might also fail for older versions...
|
||||
my $qemu_support = eval { mon_cmd($vmid, "query-proxmox-support") };
|
||||
|
Loading…
Reference in New Issue
Block a user