That way it shows up in the task-log that something was requested that
cannot work currently.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
use PVE::ProcFSTools;
use PVE::QemuConfig;
use PVE::QemuServer;
+use PVE::RESTEnvironment qw(log_warn);
use PVE::RESTHandler;
use PVE::RPCEnvironment;
use PVE::RRD;
for my $vmid (sort {$b <=> $a} keys %$vmlist) {
my $d = $vmlist->{$vmid};
- if ($d->{type} eq 'lxc') {
- print STDERR "Skipping $vmid, only VMs can be suspended\n";
+ if ($d->{type} ne 'qemu') {
+ log_warn("skipping $vmid, only VMs can be suspended");
next;
}
my $upid = eval {