From e8620a014ad482336a2e2f7d57c40de49ecca1cc Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Tue, 30 May 2023 15:52:06 +0200 Subject: [PATCH] api: resize: drop error that can never apply Because container images are never qcow2. Signed-off-by: Fiona Ebner --- src/PVE/API2/LXC.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 50c9eaf..f69b44b 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -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']); -- 2.39.2