]> git.proxmox.com Git - qemu-server.git/commitdiff
restore deactivate volumes: never die
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 21 Apr 2022 11:26:51 +0000 (13:26 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Apr 2022 16:19:17 +0000 (18:19 +0200)
Such an error shouldn't abort the whole operation.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm

index eea06a6a719aa061cee9bfe8b842254792bdc5e7..6b07a58893badc5e1d17b2177ccc0a902ad3ca5c 100644 (file)
@@ -6464,7 +6464,8 @@ my $restore_deactivate_volumes = sub {
        push @$vollist, $volid if $volid;
     }
 
-    PVE::Storage::deactivate_volumes($storecfg, $vollist);
+    eval { PVE::Storage::deactivate_volumes($storecfg, $vollist); };
+    print STDERR $@ if $@;
 };
 
 my $restore_destroy_volumes = sub {