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:
parent
f7f587288f
commit
4cec37a071
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user