Mofied it to support getting firmware information of CEC where the Lpar is located(When noderange is Lpar)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2563 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2009-01-06 11:03:50 +00:00
parent 20edf91bc4
commit af7639dcf8

View File

@ -435,14 +435,20 @@ sub firmware {
while (my ($name,$d) = each(%$h) ) {
#####################################
# Command only supported on FSP/BPAs
# Command only supported on FSP/BPA/LPARs
#####################################
if ( @$d[4] !~ /^(fsp|bpa)$/ ) {
if ( @$d[4] !~ /^(fsp|bpa|lpar)$/ ) {
push @result,
[$name,"Information only available for CEC/BPA",RC_ERROR];
[$name,"Information only available for CEC/BPA/LPAR",RC_ERROR];
next;
}
my $values = xCAT::PPCcli::lslic( $exp, $d );
#################
#For support on Lpars, the flag need to be changed.
##########
if(@$d[4] eq "lpar") {
@$d[4] = "fsp";
}
my $values = xCAT::PPCcli::lslic( $exp, $d );
my $Rc = shift(@$values);
#####################################