]> git.proxmox.com Git - pve-guest-common.git/commitdiff
config: add missing use GuestHelpers module
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Mar 2020 08:46:41 +0000 (09:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Mar 2020 08:48:22 +0000 (09:48 +0100)
import the typesafe_ne method when we're at it

PVE/AbstractConfig.pm

index 1d1ec813121dff59aa2de9cb9b3c7defd58c1ce8..e3e4c6e1d2d3fde84d96177ef731d8b13d021e7a 100644 (file)
@@ -8,6 +8,7 @@ use PVE::INotify;
 use PVE::Cluster;
 use PVE::Storage;
 
+use PVE::GuestHelpers qw(typesafe_ne);
 use PVE::ReplicationConfig;
 use PVE::Replication;
 
@@ -196,7 +197,7 @@ sub partial_fast_plug {
 
     foreach my $subopt (@all_keys) {
        my $type = $format->{$subopt}->{type};
-       if (PVE::GuestHelpers::typesafe_ne($configured->{$subopt}, $pending->{$subopt}, $type)) {
+       if (typesafe_ne($configured->{$subopt}, $pending->{$subopt}, $type)) {
            if ($fast_pluggable->{$subopt}) {
                $configured->{$subopt} = $pending->{$subopt};
                $changes = 1