fix bug 3524452: rcons to P7 IH LPAR getting Console not ready error

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12590 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-05-10 02:00:52 +00:00
parent a3c2beca1d
commit a7d074f395
2 changed files with 4 additions and 4 deletions

View File

@ -165,7 +165,7 @@ sub getIPaddress
} else {
return -3;
}
} elsif ($type eq "frame" or $type eq "cec" or $type eq "lpar") {
} elsif ($type eq "frame" or $type eq "cec" or ($type =~ /lpar/i)) {
#In DFM
#1. when the node type is frame, its hcp( $nodetocheck ) is frame,
#and it will get the BPAs IPs for the Frame.

View File

@ -250,10 +250,10 @@ sub getfspcon {
my $fsp_name = $att->{hcp};
my $id = $att->{id};
my $request;
xCAT::FSPUtils::getHcpAttribs($request, \%tabs);
my %request;
xCAT::FSPUtils::getHcpAttribs(\%request, \%tabs);
#my $fsp_ip = xCAT::Utils::getNodeIPaddress( $fsp_name );
my $fsp_ip = xCAT::FSPUtils::getIPaddress($request, $type, $fsp_name );
my $fsp_ip = xCAT::FSPUtils::getIPaddress(\%request, $type, $fsp_name );
if(!defined($fsp_ip)) {
#return "Failed to get the $fsp_name\'s ip";
$rsp->{node}->[0]->{error}=["Can't get node address"];