]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: add comment about why we still split_args for arrays
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 5 Jun 2023 08:02:58 +0000 (10:02 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 5 Jun 2023 08:02:58 +0000 (10:02 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/VZDump.pm

index dde3475629f9999d0383d13cafb297cb8d47106b..df6fd64b36cceb49f09e5727912cd2373104658b 100644 (file)
@@ -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;