From 94009776dfa131d18a7355f5dbbd17bfc699549b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 25 Feb 2021 19:19:03 +0100 Subject: [PATCH] vzdump: avoid single argument bless reported by perlcritic. Signed-off-by: Thomas Lamprecht --- PVE/VZDump.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index cb4ef592..44027d79 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -460,7 +460,11 @@ sub new { $opts->{tmpdir} =~ s|/+$|| if ($opts->{tmpdir}); $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} = []; if ($defaults->{'exclude-path'}) {