2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-28 04:58:19 +00:00

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.
This commit is contained in:
Jarrod Johnson
2017-10-13 09:24:41 -04:00
parent 60f5627754
commit 3089420a79

View File

@@ -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;