[pve-devel] [PATCH] VZDump/QemuServer: set bless clas correctly

Stefan Priebe s.priebe at profihost.ag
Wed Nov 16 20:10:40 CET 2016


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
 PVE/VZDump/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index 5322b37..6a58a79 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -22,7 +22,7 @@ sub new {
 
     PVE::VZDump::check_bin('qm');
 
-    my $self = bless { vzdump => $vzdump };
+    my $self = bless { vzdump => $vzdump }, $class;
 
     $self->{vmlist} = PVE::QemuServer::vzlist();
     $self->{storecfg} = PVE::Storage::config();
-- 
2.1.4




More information about the pve-devel mailing list