From 615da71f777b37d923bace42f1654aff971ae372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 16 Jul 2025 08:31:41 +0200 Subject: [PATCH] rename_snapshot: fix parameter checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit both source and target snapshot need to be provided when renaming. Signed-off-by: Fabian Grünbichler Signed-off-by: Alexandre Derumier --- src/PVE/Storage.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PVE/Storage.pm b/src/PVE/Storage.pm index 53965ee..b3ca094 100755 --- a/src/PVE/Storage.pm +++ b/src/PVE/Storage.pm @@ -2348,7 +2348,8 @@ sub rename_snapshot { my ($cfg, $volid, $source_snap, $target_snap) = @_; die "no volid provided\n" if !$volid; - die "no source or target snap provided\n" if !$source_snap && !$target_snap; + die "no source snapshot provided\n" if !$source_snap; + die "no target snapshot provided\n" if !$target_snap; my ($storeid, $volname) = parse_volume_id($volid);