use the getIPaddress() in FSPUtils.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-05-02 06:30:04 +00:00
parent 5f2d412304
commit 80dd11dbd4

View File

@ -251,7 +251,7 @@ sub renergy {
return ([[$node, "Failed to get the FSPs for the cec $hcphost.", -1]]);
}
#my $hcp_ip = xCAT::Utils::getNodeIPaddress($hcphost);
my $hcp_ip = xCAT::Utils::getIPaddress($hcphost);
my $hcp_ip = xCAT::FSPUtils::getIPaddress($request, $hw_type, $hcphost);
if (!defined($hcp_ip) or ($hcp_ip == -3)) {
return ([[$node, "Failed to get IP address for $hcphost.", -1]]);
}