fix bug 3482554: not correct msg if rpower on one of lpars not exist

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11450 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-02-01 06:08:51 +00:00
parent a1d39cd117
commit d7815810ca

View File

@ -277,13 +277,14 @@ sub powercmd {
if( $data =~ /Error/) {
if( $data =~ /Power interval/) {
$data = "Error: Invalid powerinterval value in the site table. The valid powerinerval value could be 0 to 300 .";
push @output, [$node_name, $data, -1];
next;
} elsif ( $data =~ /$node_name/) {
push @output, [$node_name, $data, -1];
next;
}
push @output, [$node_name, $data, -1];
} else {
push @output, [$node_name,"Success", 0];
}
push @output, [$node_name,"Success", 0];
}
return( \@output );