From cdcf25ce89e39bebcf72189a7ab7367cb0733331 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 3 Oct 2012 18:15:31 +0000 Subject: [PATCH] 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/trunk@13938 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 51ca01087..795914606 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -2955,7 +2955,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; @@ -4166,7 +4166,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;