mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	fix bug 4007: DFM support Powerlinux, mkvm return error
This commit is contained in:
		| @@ -67,7 +67,7 @@ sub getHcpAttribs | ||||
| 	} | ||||
|     } | ||||
|      | ||||
|     my @ps = $tabs->{ppc}->getAllNodeAttribs(['node','parent','nodetype','hcp']);  | ||||
|     my @ps = $tabs->{ppc}->getAllNodeAttribs(['node','parent','nodetype','hcp','id']);  | ||||
|     for my $entry ( @ps ) { | ||||
|         my $tmp_parent = $entry->{parent}; | ||||
|         my $tmp_node = $entry->{node}; | ||||
| @@ -79,6 +79,9 @@ sub getHcpAttribs | ||||
|         if (defined($tmp_node) && defined($tmp_type) && ($tmp_type eq "blade") && defined($entry->{hcp})) { | ||||
|             push @{$ppchash{$tmp_node}{children}}, $entry->{hcp}; | ||||
|         } | ||||
|         if (defined($tmp_node) && defined($entry->{id}) && defined($tmp_parent) && defined($tmp_type) && ($tmp_type eq "lpar")) { | ||||
|             $ppchash{$tmp_parent}{mapping}{$tmp_node} = $entry->{id}; | ||||
|         } | ||||
|  | ||||
| 	#if(exists($ppchash{$tmp_node})) { | ||||
| 	#     if( defined($tmp_type) ) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user