"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:
parent
dfca79641c
commit
c27b87456a
@ -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});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user