mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 15:05:36 +00:00
Change the state to powering-on, if transition states is requested
This commit is contained in:
@ -1294,7 +1294,11 @@ sub rpower_response {
|
||||
if ($status_info{RPOWER_ON_RESPONSE}{argv}) {
|
||||
xCAT::SvrUtils::sendmsg("$::POWER_STATE_RESET", $callback, $node);
|
||||
} else {
|
||||
xCAT::SvrUtils::sendmsg("$::POWER_STATE_ON", $callback, $node);
|
||||
if (defined($::OPENBMC_PWR) and ($::OPENBMC_PWR eq "YES")) {
|
||||
xCAT::SvrUtils::sendmsg("$::STATUS_POWERING_ON", $callback, $node);
|
||||
} else {
|
||||
xCAT::SvrUtils::sendmsg("$::POWER_STATE_ON", $callback, $node);
|
||||
}
|
||||
}
|
||||
$new_status{$::STATUS_POWERING_ON} = [$node];
|
||||
}
|
||||
|
Reference in New Issue
Block a user