2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 01:26:38 +00:00

Modify output for rpower state when return Quiesced

This commit is contained in:
XuWei 2017-05-16 04:42:06 -04:00
parent 83e0e51944
commit e2b25f57a3

View File

@ -830,6 +830,8 @@ sub rpower_response {
if ($node_info{$node}{cur_status} eq "RPOWER_STATUS_RESPONSE" and !$next_status{ $node_info{$node}{cur_status} }) {
if ($response_info->{'data'}->{CurrentHostState} =~ /Off$/) {
xCAT::SvrUtils::sendmsg("off", $callback, $node);
} elsif ($response_info->{'data'}->{CurrentHostState} =~ /Quiesced$/) {
xCAT::SvrUtils::sendmsg("quiesced", $callback, $node);
} else {
xCAT::SvrUtils::sendmsg("on", $callback, $node);
}