"getnodetype performance improvement": change getnodetype related code.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11548 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2012-02-10 10:43:31 +00:00
parent eeaf152457
commit 2d5285dc50

View File

@ -90,8 +90,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});
}