From 507590ec108a077d14ec42faabd7d06f3d131be2 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 1 Sep 2010 06:02:08 +0000 Subject: [PATCH] fix an issue that get averageDC has problem git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7330 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index d3516005f..6c5914bcb 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -2016,7 +2016,7 @@ sub renergy { } # get the blade center type first - if (grep (/^averageAC|cappingmax|cappingmin|capability$/, @readlist)) { + if (grep (/^averageAC|averageDC|cappingmax|cappingmin|capability$/, @readlist)) { $bc_type =$session->get([$bladetype_oid]); if ($session->{ErrorStr}) { return (1,$session->{ErrorStr}); } } @@ -2109,7 +2109,7 @@ sub renergy { if ($oid ne "") { my $data=$session->get([$oid]); if ($session->{ErrorStr}) { return (1,$session->{ErrorStr}); } - + if ($data ne "" && $data ne "NOSUCHINSTANCE" && $data ne "notApplicable" ) {