From 5c19ff582d0f4efb1d6b0a7324a6e0dcafdbdf51 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 14 Dec 2011 15:58:17 +0000 Subject: [PATCH] Actually fix rvitals interpretation of some sensors git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11247 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 83651c7a8..a3eb4a49b 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -4550,6 +4550,9 @@ sub sensor_was_read { if ($exdata1 & 1<<3) { push @exparts,"Power Cycle"; } + if (@exparts) { + $extext = join(",",@exparts); + } } elsif ($sdr->sensor_type == 0xd) { if ($exdata1 & 1) { push @exparts,"Present"; @@ -4578,6 +4581,9 @@ sub sensor_was_read { if ($exdata1 & 1<<8) { push @exparts,"Rebuild aborted"; } + if (@exparts) { + $extext = join(",",@exparts); + } } else { $extext = "xCAT needs to add support for ".$sdr->sensor_type; }