Fix problem where sensor numbers could accidentally pull in LED or FRU records
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
3c84558504
commit
7d9a0ad0ed
@ -2953,7 +2953,7 @@ sub decodealert {
|
||||
my %sdr_hash = %{$sessdata->{sdr_hash}};
|
||||
foreach $key (keys %sdr_hash) {
|
||||
my $sdr = $sdr_hash{$key};
|
||||
if($sdr->sensor_number == $sensor_num) {
|
||||
if($sdr->sensor_number == $sensor_num and $sdr->rec_type != 192 and $sdr->rec_type != 17) {
|
||||
$sensor_desc = $sdr_hash{$key}->id_string;
|
||||
if($sdr->rec_type == 0x01) {
|
||||
last;
|
||||
@ -4162,7 +4162,7 @@ sub did_led {
|
||||
my %sdr_hash = %{$sessdata->{sdr_hash}};
|
||||
foreach my $key (keys %sdr_hash) {
|
||||
my $osdr = $sdr_hash{$key};
|
||||
if($osdr->sensor_number == $sensor_num) {
|
||||
if($osdr->sensor_number == $sensor_num and $osdr->rec_type != 192 and $osdr->rec_type != 17) {
|
||||
$sensor_desc = $sdr_hash{$key}->id_string;
|
||||
if($osdr->rec_type == 0x01) {
|
||||
last;
|
||||
|
Loading…
Reference in New Issue
Block a user