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
This commit is contained in:
parent
d7ab261bc7
commit
507590ec10
@ -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" ) {
|
||||
|
Loading…
Reference in New Issue
Block a user