Fix syspowerinterval to only catch on/reset/boot type events in ipmi plugin

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11620 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-02-18 20:33:40 +00:00
parent 85be8c228e
commit c996664219

View File

@ -5433,7 +5433,7 @@ sub preprocess_request {
$request = {};
return;
}
if ($::XCATSITEVALS{syspowerinterval}) {
if (($subcmd eq 'on' or $subcmd eq 'reset' or $subcmd eq 'boot') and $::XCATSITEVALS{syspowerinterval}) {
unless($::XCATSITEVALS{syspowermaxnodes}) {
$callback->({errorcode=>[1],error=>["IPMI plugin requires syspowermaxnodes be defined if syspowerinterval is defined"]});
$request = {};