[pve-devel] [PATCH guest-common] make GuestHelpers a subclass of Exporter

Dominik Csapak d.csapak at proxmox.com
Thu Mar 12 10:57:14 CET 2020


or else the Exports will not work

found by hotplugging nics with current master from qemu-server
which resulted in a
'undefined subroutine &PVE::QemuServer::safe_string_ne'

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/GuestHelpers.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/GuestHelpers.pm b/PVE/GuestHelpers.pm
index 916f19f..1688c5c 100644
--- a/PVE/GuestHelpers.pm
+++ b/PVE/GuestHelpers.pm
@@ -9,6 +9,8 @@ use PVE::Storage;
 use POSIX qw(strftime);
 use Scalar::Util qw(weaken);
 
+use base qw(Exporter);
+
 our @EXPORT_OK = qw(safe_string_ne safe_boolean_ne safe_num_ne typesafe_ne);
 
 # We use a separate lock to block migration while a replication job
-- 
2.20.1





More information about the pve-devel mailing list