mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 15:47:41 +00:00
vzdump: avoid single argument bless
reported by perlcritic. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5620e5761e
commit
94009776df
@ -460,7 +460,11 @@ sub new {
|
|||||||
$opts->{tmpdir} =~ s|/+$|| if ($opts->{tmpdir});
|
$opts->{tmpdir} =~ s|/+$|| if ($opts->{tmpdir});
|
||||||
|
|
||||||
$skiplist = [] if !$skiplist;
|
$skiplist = [] if !$skiplist;
|
||||||
my $self = bless { cmdline => $cmdline, opts => $opts, skiplist => $skiplist };
|
my $self = bless {
|
||||||
|
cmdline => $cmdline,
|
||||||
|
opts => $opts,
|
||||||
|
skiplist => $skiplist,
|
||||||
|
}, $class;
|
||||||
|
|
||||||
my $findexcl = $self->{findexcl} = [];
|
my $findexcl = $self->{findexcl} = [];
|
||||||
if ($defaults->{'exclude-path'}) {
|
if ($defaults->{'exclude-path'}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user