shorten and subjectively improve code comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-06-22 15:08:31 +02:00
parent 227a298f7f
commit 876b24f228

View File

@ -2979,8 +2979,7 @@ __PACKAGE__->register_method({
$rpcenv->check_vm_perm($authuser, $vmid, undef, ['VM.Config.Disk']);
my $conf = PVE::QemuConfig->load_config($vmid);
# check for hostpci devices (suspend will maybe work, resume won't),
# so prevent users from suspending in the first place
# cannot save the state of a non-virtualized PCIe device, so resume cannot really work
for my $key (keys %$conf) {
next if $key !~ /^hostpci\d+/;
die "Cannot suspend VM to disk with assigned PCI devices\n";