From b1fe0bff1566f3e1ab2928384d2e0ad8e6974bda Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 7 Mar 2008 21:43:45 +0000 Subject: [PATCH] Have IPMI plugin make a better effort in the face of an unkown system git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@732 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/ipmi.pm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm index 4812a5027..5fd5dd21d 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm @@ -1579,6 +1579,23 @@ return(2,""); return(2,""); } + my $serial = "unkown"; + my $model = "unkown"; + + my $fru = FRU->new(); + $fru->rec_type("serial"); + $fru->desc("Serial Number"); + $fru->value($serial); + $fru_hash{1} = $fru; + + $fru = FRU->new(); + $fru->rec_type("model"); + $fru->desc("Model Number"); + $fru->value($model); + $fru_hash{2} = $fru; + + return(2,""); + return(1,"No OEM FRU Support"); }