-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:
parent
7a16766e74
commit
8df8c91166
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user