]> git.proxmox.com Git - pve-guest-common.git/commitdiff
make GuestHelpers a subclass of Exporter
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 12 Mar 2020 09:57:14 +0000 (10:57 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Mar 2020 10:09:00 +0000 (11:09 +0100)
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@proxmox.com>
PVE/GuestHelpers.pm

index 916f19f63b06f47a599efb6072f5a904421c9454..1688c5caf108b13f1b7389238a5d132380b806c7 100644 (file)
@@ -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