mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-13 16:28:37 +00:00
import disk: downgrade hotplug failure to warning
This commit is contained in:
parent
8653feebe6
commit
0f0aa6b71e
@ -63,7 +63,12 @@ sub do_import {
|
|||||||
if ($running) {
|
if ($running) {
|
||||||
my $errors = {};
|
my $errors = {};
|
||||||
PVE::QemuServer::vmconfig_hotplug_pending($vmid, $vm_conf, $storecfg, $modified, $errors);
|
PVE::QemuServer::vmconfig_hotplug_pending($vmid, $vm_conf, $storecfg, $modified, $errors);
|
||||||
raise_param_exc($errors) if scalar(keys %$errors);
|
if (scalar(keys %$errors)) {
|
||||||
|
foreach my $k (keys %$errors) {
|
||||||
|
warn "$k: $errors->{$k}\n" if $debug;
|
||||||
|
warn "hotplugging imported disk failed\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
PVE::QemuServer::vmconfig_apply_pending($vmid, $vm_conf, $storecfg);
|
PVE::QemuServer::vmconfig_apply_pending($vmid, $vm_conf, $storecfg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user