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