]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: avoid single argument bless
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 Feb 2021 18:19:03 +0000 (19:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 Feb 2021 18:19:15 +0000 (19:19 +0100)
reported by perlcritic.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump.pm

index cb4ef5929904c3ecf0c5851f17776a2156f8b781..44027d799eb9b5739e8d469aa3ddd347b821c2ef 100644 (file)
@@ -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'}) {