From 7a16766e7409374ad7b29745a0bcc1e2d4681b4f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 27 Jan 2011 18:55:09 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/dhcp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index c04e7cd26..f15c6f8c2 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -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;