From 83d2b08c886709dc1881fbd5fbc1494648d959b0 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 22 Jul 2010 14:39:21 +0000 Subject: [PATCH] -If passed 'Not Present', parsefru won't mess up now git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 742df1c09..259faadef 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -2193,6 +2193,9 @@ sub parsefru { my $currsize; #store current size my $subidx; my @currarea; + unless (ref $bytes) { + return $bytes,undef; + } unless ($bytes->[0]==1) { if ($bytes->[0]==0 or $bytes->[0]==0xff) { #not in spec, but probably unitialized, xCAT probably will rewrite fresh return "clear",undef;