From 682d8ec0df7cc1b501bba79ccc415ea87da24205 Mon Sep 17 00:00:00 2001 From: jjhua Date: Sat, 28 Apr 2012 08:58:20 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/blade.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 908cdcfae..64c88bdc0 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -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; }