vzdump: command line: make sure mailto is comma-separated

In addition to relying on shellquote(), it's still nice to avoid printing out
unnecessary whitespaces, especially newlines.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-02-15 13:24:58 +01:00 committed by Thomas Lamprecht
parent 9e542a4f90
commit 7a9b527f54

View File

@ -394,6 +394,7 @@ sub command_line {
$cmd .= " --$p " . PVE::Tools::shellquote($path);
}
} else {
$v = join(",", PVE::Tools::split_list($v)) if $p eq 'mailto';
$v = PVE::JSONSchema::print_property_string($v, 'prune-backups')
if $p eq 'prune-backups';