]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/API2/LXC.pm
api: resize: drop error that can never apply
[pve-container.git] / src / PVE / API2 / LXC.pm
index 50c9eaf34d6455b2c55d0a35b6a062626c618900..f69b44bd0e473a34012403d5b1f02f544f75297d 100644 (file)
@@ -1955,9 +1955,6 @@ __PACKAGE__->register_method({
            die "can't resize mount point owned by another container ($owner)"
                if $vmid != $owner;
 
-           die "can't resize volume: $disk if snapshot exists\n"
-               if %{$conf->{snapshots}} && $format eq 'qcow2';
-
            my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid);
 
            $rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);