From 6573d8f9f192fceb9fa02cd91ec5ea13d4fb2f6c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sat, 20 May 2017 13:06:07 -0400 Subject: [PATCH] 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). --- xCAT-server/lib/xcat/plugins/blade.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 00a4016ac..7e781b595 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -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} }) {