From 6a75aa33968bd89d9f83a5476f890269bb59ed23 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 5 Jun 2023 10:02:58 +0200 Subject: [PATCH] vzdump: add comment about why we still split_args for arrays Signed-off-by: Wolfgang Bumiller --- PVE/VZDump.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index dde34756..df6fd64b 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -282,6 +282,8 @@ sub read_vzdump_defaults { if (ref($excludes) eq 'ARRAY') { my $list = []; for my $path ($excludes->@*) { + # We still use `split_args` here to be compatible with old configs where one line + # still has multiple space separated entries. push $list->@*, PVE::Tools::split_args($path)->@*; } $res->{'exclude-path'} = $list; -- 2.39.5