to re-use a line here and with the next patch. Signed-off-by: Fabian Ebner <f.eb...@proxmox.com> ---
New in v2. PVE/VZDump/Common.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PVE/VZDump/Common.pm b/PVE/VZDump/Common.pm index af141de..eceea7f 100644 --- a/PVE/VZDump/Common.pm +++ b/PVE/VZDump/Common.pm @@ -393,11 +393,10 @@ sub command_line { foreach my $path (split(/\0/, $v || '')) { $cmd .= " --$p " . PVE::Tools::shellquote($path); } - } elsif ($p eq 'prune-backups') { - my $property_string = PVE::JSONSchema::print_property_string($v, 'prune-backups'); - $cmd .= " --$p " . PVE::Tools::shellquote($property_string) - if defined($property_string) && $property_string ne ''; } else { + $v = PVE::JSONSchema::print_property_string($v, 'prune-backups') + if $p eq 'prune-backups'; + $cmd .= " --$p " . PVE::Tools::shellquote($v) if defined($v) && $v ne ''; } } -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel