fix bug 2874268 rvitals lcds displays too much output if no LCDs

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4346 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhanx 2009-10-12 06:09:48 +00:00
parent 1e306a3892
commit 0c94f2e78a

View File

@ -146,15 +146,17 @@ sub enumerate_lcds {
foreach $value (@$values){
#Return error
$Rc = shift @$value;
if ($Rc != SUCCESS){
push @refcode, ( [$Rc, @$value[0]] );
} else {
if( @$value[0] =~ /refcode=(\w+)/){
push @refcode, ( [$Rc, $1] );
} else {
push @refcode, ( [$Rc, @$value[0]]);
if( @$value[0] =~ /refcode=(\w*)/){
my $code = $1;
if ( ! $code)
{
push @refcode, [$Rc, "blank"];
}
}
else
{
push @refcode, [$Rc, $code] ;
}
}
}
return \@refcode;