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:
committed by
Thomas Lamprecht
parent
8a183b5db2
commit
0e58fffcc2
@ -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};
|
||||
|
||||
Reference in New Issue
Block a user