-Fix problem where discovery on rackmount configuration would BUG because there was no mp table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
651a7c86b2
commit
c7781fb32d
@ -1338,7 +1338,7 @@ sub preprocess_request {
|
||||
#get the MMs for the nodes for the nodes in order to figure out which service nodes to send the requests to
|
||||
my $mptab = xCAT::Table->new("mp");
|
||||
unless ($mptab) {
|
||||
$callback->({data=>"Cannot open mp table"});
|
||||
$callback->({data=>["Cannot open mp table"]});
|
||||
$request = {};
|
||||
return;
|
||||
}
|
||||
@ -1347,7 +1347,7 @@ sub preprocess_request {
|
||||
my $ent=$mptab->getNodeAttribs($node,['mpa', 'id']);
|
||||
if (defined($ent->{mpa})) { push @{$mpa_hash{$ent->{mpa}}{nodes}}, $node;}
|
||||
else {
|
||||
$callback->({data=>"no mpa defined for node $node"});
|
||||
$callback->({data=>["no mpa defined for node $node"]});
|
||||
$request = {};
|
||||
return;
|
||||
}
|
||||
@ -1389,7 +1389,7 @@ sub build_more_info{
|
||||
my $mptab = xCAT::Table->new("mp");
|
||||
my @moreinfo=();
|
||||
unless ($mptab) {
|
||||
$callback->({data=>"Cannot open mp table"});
|
||||
$callback->({data=>["Cannot open mp table"]});
|
||||
return @moreinfo;
|
||||
}
|
||||
my %mpa_hash=();
|
||||
@ -1397,7 +1397,7 @@ sub build_more_info{
|
||||
my $ent=$mptab->getNodeAttribs($node,['mpa', 'id']);
|
||||
if (defined($ent->{mpa})) { push @{$mpa_hash{$ent->{mpa}}{nodes}}, $node;}
|
||||
else {
|
||||
$callback->({data=>"no mpa defined for node $node"});
|
||||
$callback->({data=>["no mpa defined for node $node"]});
|
||||
return @moreinfo;;
|
||||
}
|
||||
if (defined($ent->{id})) { push @{$mpa_hash{$ent->{mpa}}{ids}}, $ent->{id};}
|
||||
|
Loading…
Reference in New Issue
Block a user