From c7781fb32d2780b4c2bfb64a20dcb4efdc26e60d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 21 May 2008 19:51:59 +0000 Subject: [PATCH] -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 --- xCAT-server-2.0/lib/xcat/plugins/blade.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/blade.pm b/xCAT-server-2.0/lib/xcat/plugins/blade.pm index a4b087d63..0066ea1f7 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/blade.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/blade.pm @@ -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};}