mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-08-08 10:16:15 +00:00
config: add missing use GuestHelpers module
import the typesafe_ne method when we're at it
This commit is contained in:
parent
47d7954c59
commit
67b3581e64
@ -8,6 +8,7 @@ use PVE::INotify;
|
|||||||
use PVE::Cluster;
|
use PVE::Cluster;
|
||||||
use PVE::Storage;
|
use PVE::Storage;
|
||||||
|
|
||||||
|
use PVE::GuestHelpers qw(typesafe_ne);
|
||||||
use PVE::ReplicationConfig;
|
use PVE::ReplicationConfig;
|
||||||
use PVE::Replication;
|
use PVE::Replication;
|
||||||
|
|
||||||
@ -196,7 +197,7 @@ sub partial_fast_plug {
|
|||||||
|
|
||||||
foreach my $subopt (@all_keys) {
|
foreach my $subopt (@all_keys) {
|
||||||
my $type = $format->{$subopt}->{type};
|
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}) {
|
if ($fast_pluggable->{$subopt}) {
|
||||||
$configured->{$subopt} = $pending->{$subopt};
|
$configured->{$subopt} = $pending->{$subopt};
|
||||||
$changes = 1
|
$changes = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user