performance enhancement for getIPaddress() in blade.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12381 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-04-28 08:58:20 +00:00
parent d3789253c0
commit 682d8ec0df

View File

@ -4212,7 +4212,9 @@ sub get_blades_for_mpa {
} elsif ($att and $att->{parent} and ($att->{parent} ne $mpa)) {
next;
}
my $hcp_ip = xCAT::Utils::getIPaddress($att->{hcp});
my $request;
my $nodetype = "blade";
my $hcp_ip = xCAT::FSPUtils::getIPaddress($request, $nodetype, $att->{hcp});
if (!defined($hcp_ip) or ($hcp_ip == -3)) {
next;
}