[pve-devel] [PATCH storage 1/3] volume export: fix handling of snapshot list
Fiona Ebner
f.ebner at proxmox.com
Fri Feb 21 16:41:09 CET 2025
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 at proxmox.com>
---
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};
--
2.39.5
More information about the pve-devel
mailing list