From 0e58fffcc2000b6ffcc26c14c71c48600b12aee4 Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Fri, 21 Feb 2025 16:41:09 +0100 Subject: [PATCH] volume export: fix handling of snapshot list The split_list() helper will return a list, and assignment in scalar context would result in the number of elements, instead of having the desired array reference, that the BTRFS plugin expects. Signed-off-by: Fiona Ebner --- src/PVE/CLI/pvesm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/CLI/pvesm.pm b/src/PVE/CLI/pvesm.pm index d308b3d..fd5f788 100755 --- a/src/PVE/CLI/pvesm.pm +++ b/src/PVE/CLI/pvesm.pm @@ -308,7 +308,7 @@ __PACKAGE__->register_method ({ my $with_snapshots = $param->{'with-snapshots'}; if (defined(my $list = $param->{'snapshot-list'})) { - $with_snapshots = PVE::Tools::split_list($list); + $with_snapshots = [PVE::Tools::split_list($list)]; } my $filename = $param->{filename};