diff --git a/xCAT-server-2.0/lib/xcat/plugins/nodediscover.pm b/xCAT-server-2.0/lib/xcat/plugins/nodediscover.pm index 4bfcb643e..4b7162623 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/nodediscover.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/nodediscover.pm @@ -32,7 +32,7 @@ sub gethosttag { my $netn = shift; my $ifname = shift; my $usednames = shift; - my %netmap = %{xCAT::Utils::my_if_netmap}; + my %netmap = %{xCAT::Utils::my_if_netmap()}; my $mgtifname = $netmap{$netn}; my $secondpass = 0; my $name = "";