fixed defect 3058739; support for mkhwconn wiht bpa and fsp.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7358 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2010-09-06 07:32:08 +00:00
parent 246e52bbf5
commit 3455c10421

View File

@ -1740,7 +1740,7 @@ sub process_request {
}
#print "lasthcp_type:$lasthcp_type ;thishcp_type:$thishcp_type\n";
if(defined($lasthcp_type)) {
if ( $lasthcp_type ne $thishcp_type ) {
if ( ($lasthcp_type =~ /^(hmc)$/ && $thishcp_type =~ /^(fsp|bpa)$/) or (($lasthcp_type =~ /^(fsp|bpa)$/ ) && ($thishcp_type =~ /^(hmc)$/ )) ) {
$callback->({data=>["the $node\'s hcp type is different from the other's in the specified noderange in the 'ppc' table."]});
return;
}