]> git.proxmox.com Git - pve-container.git/commitdiff
api: resize: drop error that can never apply
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 30 May 2023 13:52:06 +0000 (15:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Jun 2023 17:26:33 +0000 (19:26 +0200)
Because container images are never qcow2.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
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']);