From 3089420a793dd9ab6c92f4149f6fbeae76af3ee8 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 13 Oct 2017 09:24:41 -0400 Subject: [PATCH] Filter mp entries out of findme if not blade If someone is using Flex or similar, they must be explicit. This avoids blade.pm from bogging down xCAT discovery. --- xCAT-server/lib/xcat/plugins/blade.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 0641827ff..eedce760d 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -4476,10 +4476,12 @@ sub process_request { my $mptab = xCAT::Table->new("mp"); unless ($mptab) { return 2; } - my @bladents = $mptab->getAllNodeAttribs([qw(node)]); + my @bladents = $mptab->getAllNodeAttribs([qw(node nodetype)]); my @blades; foreach (@bladents) { - push @blades, $_->{node}; + if ($_->{nodetype} eq "blade") { + push @blades, $_->{node}; + } } my %invreq; $invreq{node} = \@blades;