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:
parent
85be8c228e
commit
c996664219
@ -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 = {};
|
||||
|
Loading…
Reference in New Issue
Block a user