]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/API2/Qemu.pm
live storage migration : fix check of target storage availability
[qemu-server.git] / PVE / API2 / Qemu.pm
index 24a5b67c73424e81ae20ba3d1982812c8c22ad46..19ba5bec1cdedd08d2c1f6f3f10a08329e1ca9a0 100644 (file)
@@ -2820,7 +2820,12 @@ __PACKAGE__->register_method({
        }
 
        my $storecfg = PVE::Storage::config();
-       PVE::QemuServer::check_storage_availability($storecfg, $conf, $target);
+
+       if( $param->{targetstorage}) {
+           PVE::Storage::storage_check_node($storecfg, $param->{targetstorage}, $target);
+        } else {
+           PVE::QemuServer::check_storage_availability($storecfg, $conf, $target);
+       }
 
        if (PVE::HA::Config::vm_is_ha_managed($vmid) && $rpcenv->{type} ne 'ha') {