mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 11:32:41 +00:00
followup: code-style cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
80ea4443a3
commit
4048af343f
@ -72,11 +72,10 @@ sub run {
|
||||
delete $conf->{$opt} if !defined($props->{$opt});
|
||||
}
|
||||
|
||||
# fixup prune-backups, we get it decoded but want it as string parameter
|
||||
$conf->{'prune-backups'} = PVE::JSONSchema::print_property_string(
|
||||
$conf->{'prune-backups'},
|
||||
'prune-backups',
|
||||
) if $conf->{'prune-backups'} && ref($conf->{'prune-backups'}) eq 'HASH';
|
||||
my $retention = $conf->{'prune-backups'};
|
||||
if ($retention && ref($retention) eq 'HASH') { # fixup, its required as string parameter
|
||||
$conf->{'prune-backups'} = PVE::JSONSchema::print_property_string($retention, 'prune-backups');
|
||||
}
|
||||
|
||||
$conf->{quiet} = 1; # do not write to stdout/stderr
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user