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 <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner
2025-02-21 16:41:09 +01:00
committed by Thomas Lamprecht
parent 8a183b5db2
commit 0e58fffcc2

View File

@ -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};