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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-15 07:27:07 +01:00
parent 4c1d2d98c4
commit 1a67f99959

View File

@ -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();