fix bug 3500392: FB->console abnormal if off/on blade

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11921 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-03-21 07:12:47 +00:00
parent 608177e77f
commit 1c006a4162

View File

@ -292,7 +292,17 @@ sub powercmd {
if ((scalar(keys %$hash) == 1) and $Rc) {
push @output, [$node_name, $data, $Rc];
} else {
push @output, [$node_name,"Success", 0];
# check the state of the blade or CEC after cec_reboot in order to let HWS realize the destination CEC had been powerd off #
#my $msg = "success";
if ($action eq 'cec_reboot') {
sleep 0.1;
xCAT::FSPUtils::fsp_state_action (@$d[3], @$d[4], "cec_state");
#my $state_res = xCAT::FSPUtils::fsp_state_action (@$d[3], @$d[4], "cec_state");
#my @state_state = @$state_res[1];
#$msg = @state_state[0];
}
push @output, [$node_name,"Success", 0];
#push @output, [$node_name,$msg, 0];
}
}
return( \@output );