2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 18:28:16 +00:00

Skip scanning an mpa if nodetype is not blade

To many things are using mp table.  Use nodetype blade
to indicate it's really a 'blade' (specifically the
BladeCenter/Flex variety).
This commit is contained in:
Jarrod Johnson
2017-05-20 13:06:07 -04:00
parent 60871f7709
commit 6573d8f9f1

View File

@@ -4255,6 +4255,9 @@ sub preprocess_request {
foreach my $node (@$noderange) {
my $ent = $mptabhash->{$node}->[0]; #$mptab->getNodeAttribs($node,['mpa', 'id']);
my $mpaent;
if ($request->{command}->[0] eq 'findme' and $ent->{nodetype} ne 'blade') {
next;
}
if (defined($ent->{mpa})) {
push @{ $mpa_hash{ $ent->{mpa} }{nodes} }, $node;
unless ($mpatype{ $ent->{mpa} }) {