"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
This commit is contained in:
yinle 2012-02-10 09:14:40 +00:00
parent dfca79641c
commit c27b87456a

View File

@ -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});
}