Use getNodeIPaddress again with OnlyV4 enhancement
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8758 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
b1b2aaf7dc
commit
7a16766e74
@ -314,7 +314,7 @@ sub addnode
|
||||
$hname = $node;
|
||||
} #Default to hostname equal to nodename
|
||||
unless ($mac) { next; } #Skip corrupt format
|
||||
my $ip = inet_ntoa(inet_aton($hname)); #xCAT::Utils::getNodeIPaddress($hname);
|
||||
my $ip = xCAT::Utils::getNodeIPaddress($hname,OnlyV4=>1);
|
||||
if ($hname eq '*NOIP*') {
|
||||
$hname = $node . "-noip".$mac;
|
||||
$hname =~ s/://g;
|
||||
|
Loading…
x
Reference in New Issue
Block a user