]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Disks/LVMThin.pm
fix #1929: only check storage if user want to create one
[pve-storage.git] / PVE / API2 / Disks / LVMThin.pm
index 62d3b61ef42d3fa39e0fe6bb108bbf0ba4d10297..717897d8b3c94d8fee25ea97f7bdcb276aaac676 100644 (file)
@@ -104,7 +104,7 @@ __PACKAGE__->register_method ({
 
        $dev = PVE::Diskmanage::verify_blockdev_path($dev);
        PVE::Diskmanage::check_unused($dev);
-       PVE::Storage::check_available($name);
+       PVE::Storage::check_available($name) if $param->{add_storage};
 
        my $worker = sub {
            PVE::Diskmanage::locked_disk_action(sub {