when the cec or bpa is in standby state, it's in on state

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9375 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2011-04-22 07:53:51 +00:00
parent f7f587288f
commit 4cec37a071

View File

@ -236,14 +236,15 @@ sub powercmd {
# Queries CEC/LPAR power status (On or Off) for powercmd_boot
##########################################################################
sub power_status {
my $value = shift;
my @states = (
"Operating|operating",
"Running|running",
"standby",
"Open Firmware|open-firmware"
);
foreach ( @states ) {
if ( /$_[0]/ ) {
foreach my $s ( @states ) {
if ($value =~ /$s/ ) {
return("on");
}
}