]> git.proxmox.com Git - qemu-server.git/commitdiff
import disk: downgrade hotplug failure to warning
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 1 Jun 2017 09:15:14 +0000 (11:15 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 1 Jun 2017 09:15:14 +0000 (11:15 +0200)
PVE/QemuServer/ImportDisk.pm

index 0757131e9f8f4f43c0966e8fb2ba61ca1006af0d..e8e83b3448d606a8c65c640dbe76771e6f21fcb6 100755 (executable)
@@ -63,7 +63,12 @@ sub do_import {
                if ($running) {
                    my $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 {
                    PVE::QemuServer::vmconfig_apply_pending($vmid, $vm_conf, $storecfg);
                }