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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user