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.eb...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to