From c996664219d1672d4f5ff1cd884791d4439b49e1 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 18 Feb 2012 20:33:40 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/ipmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 526012f78..0effd2e87 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -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 = {};