From 1a67f99959ff7667709e1a84de6cd63570b58aaf Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 15 Nov 2022 07:27:07 +0100 Subject: [PATCH] add fixme comment to replace duplicate nodename cache that function also caches the value, and it recently was changed to be importable, so we can just import and drop this once a new enough pve-common is available. Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 51e9a519..6755a0f1 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -121,8 +121,7 @@ PVE::JSONSchema::register_standard_option('pve-qemu-machine', { optional => 1, }); -#no warnings 'redefine'; - +# FIXME: remove in favor of just using the INotify one, it's cached there exactly the same way my $nodename_cache; sub nodename { $nodename_cache //= PVE::INotify::nodename();