From 8df8c911660481c1985c02ba46aab672130dba11 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 27 Jan 2011 19:12:56 +0000 Subject: [PATCH] -Correct to use getipaddr git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8759 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 f15c6f8c2..9e88d7214 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 = xCAT::Utils::getNodeIPaddress($hname,OnlyV4=>1); + my $ip = getipaddr($hname,OnlyV4=>1); if ($hname eq '*NOIP*') { $hname = $node . "-noip".$mac; $hname =~ s/://g;