mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 02:42:41 +00:00 
			
		
		
		
	fix bugs item 3190928
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9528 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1539,14 +1539,20 @@ sub preprocess_request { | ||||
|                 return; | ||||
|             } | ||||
|             foreach my $node (@missednodes) { | ||||
|                 my ($ent) = $ppctab->getAttribs({hcp=>$node}, "hcp"); | ||||
|                 if (defined($ent)) { | ||||
|                     push @{$hcp_hash{$node}{nodes}}, $node;  | ||||
|                     next; | ||||
|                 } | ||||
|  | ||||
|                 my $ent=$ppctab->getNodeAttribs($node,['hcp']); | ||||
|                 #if (defined($ent->{hcp})) { push @{$hcp_hash{$ent->{hcp}}{nodes}}, $node;} | ||||
| #if (defined($ent->{hcp})) { push @{$hcp_hash{$ent->{hcp}}{nodes}}, $node;} | ||||
|                 if (defined($ent->{hcp})) { | ||||
| 		            #for multiple hardware control points, the hcps should be split to nodes | ||||
| 		            my @h = split(",", $ent->{hcp});  | ||||
| 		            foreach my $hcp (@h) { | ||||
| #for multiple hardware control points, the hcps should be split to nodes | ||||
|                     my @h = split(",", $ent->{hcp});  | ||||
|                     foreach my $hcp (@h) { | ||||
|                         push @{$hcp_hash{$hcp}{nodes}}, $node; | ||||
| 		            }   | ||||
|                     }   | ||||
|                 } else {  | ||||
|                     $callback->({data=>["The node $node is neither a hcp nor an lpar"]}); | ||||
|                     $req = {}; | ||||
| @@ -1555,7 +1561,7 @@ sub preprocess_request { | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         # find service nodes for the HCPs | ||||
| # find service nodes for the HCPs | ||||
|         # build an individual request for each service node | ||||
|         my $service  = "xcat"; | ||||
|         my @hcps=keys(%hcp_hash); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user