fix bug 3262:rflash firmware update with --activate concurrent to HMC CEC powerd off CEC

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14702 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-12-21 09:05:35 +00:00
parent 39b4583739
commit 91b582b5ea

View File

@ -534,18 +534,22 @@ sub get_lic_filenames {
#############
if($fff ne $2) {
$upgrade_required = 1;
if($activate ne "disruptive") {
$msg = "Option --activate's value should be disruptive";
return ("", "","", $msg, -1);
}
} else {
if(($pns eq $1) && ($4 <= $active_level)) {
$msg = $msg. "Upgrade $mtms $activate!";
# if($activate ne "concurrent") {
# $msg = "Option --actviate's value should be disruptive";
# return ("", "","", $msg, -1);
# }
if(($pns eq $1) && ($3 > $active_level) &&($4 <= $active_level)) {
$msg = $msg. "Upgrade $mtms $activate!";
if($activate ne "concurrent") {
$msg = "Option --actviate's value should be concurrent";
return ("", "","", $msg, -1);
}
} else {
$msg = $msg . "Upgrade $mtms!";
if($activate !~ /^(disruptive|concurrent)$/) {
$msg = "Option --activate's value shouldn't be $activate, and it must be disruptive or concurrent";
$msg = $msg . "Upgrade $mtms!";
if($activate ne "disruptive") {
$msg = "Option --activate's value should be disruptive";
return ("", "","", $msg, -1);
}
}