mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-08-14 19:58:38 +00:00
vzdump: change 'exclude-path' from alist to an array format
to get rid of the '-alist' format Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
f5dbf998dc
commit
75b254985f
@ -154,11 +154,14 @@ my $confdesc = {
|
|||||||
optional => 1,
|
optional => 1,
|
||||||
},
|
},
|
||||||
'exclude-path' => {
|
'exclude-path' => {
|
||||||
type => 'string', format => 'string-alist',
|
type => 'array',
|
||||||
description => "Exclude certain files/directories (shell globs)." .
|
description => "Exclude certain files/directories (shell globs)." .
|
||||||
" Paths starting with '/' are anchored to the container's root, " .
|
" Paths starting with '/' are anchored to the container's root, " .
|
||||||
" other paths match relative to each subdirectory.",
|
" other paths match relative to each subdirectory.",
|
||||||
optional => 1,
|
optional => 1,
|
||||||
|
items => {
|
||||||
|
type => 'string',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mailto => {
|
mailto => {
|
||||||
type => 'string',
|
type => 'string',
|
||||||
@ -422,7 +425,7 @@ sub command_line {
|
|||||||
my $v = $param->{$p};
|
my $v = $param->{$p};
|
||||||
my $pd = $confdesc->{$p} || die "no such vzdump option '$p'\n";
|
my $pd = $confdesc->{$p} || die "no such vzdump option '$p'\n";
|
||||||
if ($p eq 'exclude-path') {
|
if ($p eq 'exclude-path') {
|
||||||
foreach my $path (split(/\0/, $v || '')) {
|
foreach my $path (@$v) {
|
||||||
$cmd .= " --$p " . PVE::Tools::shellquote($path);
|
$cmd .= " --$p " . PVE::Tools::shellquote($path);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user