2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 18:28:16 +00:00

Fix rpower reset when a pdu is configured

This commit is contained in:
Jarrod Johnson
2017-05-10 10:49:38 -04:00
parent 2a2f353367
commit 86363a518e

View File

@@ -131,7 +131,7 @@ sub process_request
return powerstat($noderange, $callback);
}elsif ($command eq "rpower") {
my $subcmd = $exargs[0];
if(($subcmd eq 'on') || ($subcmd eq 'off') || ($subcmd eq 'stat')){
if(($subcmd eq 'on') || ($subcmd eq 'off') || ($subcmd eq 'stat') || ($subcmd eq 'reset')){
#-------------------------------------------
#there are 2 cases will enter this black
#one is if node's mgt is pdu