mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 13:50:28 +00:00
vzdump: avoid parsing already parsed option
When a job is updated, verify_vzdump_parameters() is called twice. This led to parse_property_string being called with the already parsed option. Reported on the pve-user mailing list: https://lists.proxmox.com/pipermail/pve-user/2021-January/172258.html Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
ea717e8f66
commit
ecc08c34ea
@ -79,6 +79,7 @@ my $parse_prune_backups_maxfiles = sub {
|
||||
if defined($maxfiles) && defined($prune_backups);
|
||||
|
||||
if (defined($prune_backups)) {
|
||||
return if ref($prune_backups) eq 'HASH'; # already parsed
|
||||
$param->{'prune-backups'} = PVE::JSONSchema::parse_property_string(
|
||||
'prune-backups',
|
||||
$prune_backups
|
||||
|
Loading…
Reference in New Issue
Block a user