performance enhancement for getIPaddress() in fsp.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12387 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-04-28 09:25:04 +00:00
parent 1bc8fc7e64
commit 4b8f6d528a

View File

@ -249,9 +249,11 @@ sub getfspcon {
my $fsp_name = $att->{hcp};
my $id = $att->{id};
my $request;
xCAT::FSPUtils::getHcpAttribs($request, \%tabs);
#my $fsp_ip = xCAT::Utils::getNodeIPaddress( $fsp_name );
my $fsp_ip = xCAT::Utils::getIPaddress( $fsp_name );
my $fsp_ip = xCAT::FSPUtils::getIPaddress($request, $type, $fsp_name );
if(!defined($fsp_ip)) {
#return "Failed to get the $fsp_name\'s ip";
$rsp->{node}->[0]->{error}=["Can't get node address"];