mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	modification of getHCPsOfNodes()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6983 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1966,16 +1966,16 @@ sub getHCPsOfNodes | ||||
|             my $hcp_hash    = $ppctab->getNodeAttribs( $node,[qw(hcp)]); | ||||
|             my $hcp    = $hcp_hash->{hcp}; | ||||
|             if ( !$hcp) { | ||||
| 	        #xCAT::MsgUtils->message('E', "Not found the hcp of $node");	 | ||||
| 	        $callback->({data=>["Not found the hcp of $node"]}); | ||||
| 	        return undef; | ||||
|         } | ||||
| 	} | ||||
| 	#print "hcp:\n"; | ||||
| 	#print Dumper($hcp); | ||||
| 	my @h = split(",", $hcp); | ||||
| 	$hcps{$node}{hcp} = \@h; | ||||
| 	$hcps{$node}{num} = @h; | ||||
| 	            #xCAT::MsgUtils->message('E', "Not found the hcp of $node");	 | ||||
| 	            $callback->({data=>["Not found the hcp of $node"]}); | ||||
| 	            return undef; | ||||
|             } | ||||
| 	        #print "hcp:\n"; | ||||
| 	        #print Dumper($hcp); | ||||
| 	        my @h = split(",", $hcp); | ||||
| 	       $hcps{$node}{hcp} = \@h; | ||||
| 	       $hcps{$node}{num} = @h; | ||||
|        } | ||||
|     } | ||||
|     #print "in getHCPsOfNodes\n"; | ||||
|     #print Dumper(\%hcps); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user