From c27b87456a13f92d63b3f708f2966704a344888a Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 10 Feb 2012 09:14:40 +0000 Subject: [PATCH] "getnodetype performance improvement": change getnodetype related code. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11543 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPcfg.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/FSPcfg.pm b/perl-xCAT/xCAT/FSPcfg.pm index 8b6142f03..277d76b71 100644 --- a/perl-xCAT/xCAT/FSPcfg.pm +++ b/perl-xCAT/xCAT/FSPcfg.pm @@ -134,8 +134,9 @@ sub parse_args { #} my $nodes = $request->{node}; + my $typehash = xCAT::DBobjUtils->getnodetype(\@$nodes, "ppc"); foreach my $nn (@$nodes) { - $request->{hwtype} = xCAT::DBobjUtils->getnodetype($nn); + $request->{hwtype} =$$typehash{$nn}; last if ($request->{hwtype}); }