From cbbe6a3e3d2f1b4c8ddcf0469d62448433e7c1c2 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 13 Feb 2010 14:49:26 +0000 Subject: [PATCH] -Fix traphandler use of new ipmi code git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5216 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 119f1ca8c..123e87660 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -2563,11 +2563,12 @@ sub fruwrite { sub decodealert { my $sessdata = shift; - unless ($sessdata) { - die "not fixed yet"; + my $skip_sdrinit=0; + unless (ref $sessdata) { #called from xcat traphandler + $sessdata = { sdr_hash => {} }; + $skip_sdrinit=1; #TODO sdr_init, cache only to avoid high trap handling overhead } my $trap = shift; - my $skip_sdrinit=0; if ($trap =~ /xCAT_plugin::ipmi/) { $trap=shift; $skip_sdrinit=1;