-Correct to use getipaddr

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8759 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-01-27 19:12:56 +00:00
parent 7a16766e74
commit 8df8c91166

View File

@ -314,7 +314,7 @@ sub addnode
$hname = $node;
} #Default to hostname equal to nodename
unless ($mac) { next; } #Skip corrupt format
my $ip = xCAT::Utils::getNodeIPaddress($hname,OnlyV4=>1);
my $ip = getipaddr($hname,OnlyV4=>1);
if ($hname eq '*NOIP*') {
$hname = $node . "-noip".$mac;
$hname =~ s/://g;