]> git.proxmox.com Git - pve-manager.git/commit - PVE/VZDump.pm
vzdump: defaults: convert to prune-backups early enough
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 21 Dec 2020 13:48:16 +0000 (14:48 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Dec 2020 14:29:02 +0000 (15:29 +0100)
commitdd5d80f56a14b105f5572fd31bd5732bdf9736a8
treef627fdf178d7bbfd38018d3ab9bb4b1ca48215e4
parentab459f6da0d7329120fe1c3e81157f4caa2c00d9
vzdump: defaults: convert to prune-backups early enough

Fixes the case where reading from /etc/vzdump.conf fails.

Also convert the options read from /etc/vzdump.conf before the loop. That
avoids showing a wrong warning when 'prune-backups' is configured in
/etc/vzdump.conf, and maxfiles isn't. Previously, because 'maxfiles' from the
schema defaults was automatically set, the call to parse_prune_backups_maxfiles
after the loop threw the warning that both options are defined.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/VZDump.pm