mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-25 00:15:43 +00:00 
			
		
		
		
	change the way of get nodetype
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9733 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -2106,8 +2106,10 @@ sub getchildren | ||||
|             my $p = $entry->{parent}; | ||||
|             my $c = $entry->{node}; | ||||
|             if ( $p and $c) { | ||||
|                 my $type = $ppctab->getNodeAttribs($c, ["nodetype"]); | ||||
|                 if ( $type and ($type->{nodetype} eq 'fsp') or ($type->{nodetype} eq 'bpa')) | ||||
|                 #my $type = $ppctab->getNodeAttribs($c, ["nodetype"]); | ||||
|                 my $type = getnodetype($c); | ||||
|                 #if ( $type and ($type->{nodetype} eq 'fsp') or ($type->{nodetype} eq 'bpa')) | ||||
|                 if ( $type eq 'fsp' or $type eq 'bpa') | ||||
|                 { | ||||
|                     push @{$::PARENT_CHILDREN{$p}}, $c; | ||||
|                 } | ||||
| @@ -2272,8 +2274,9 @@ sub getcecchildren | ||||
|                 my $p = $entry->{parent}; | ||||
|                 my $c = $entry->{node}; | ||||
|                 if ( $p and $c) { | ||||
|                     my $type = $ppctab->getNodeAttribs($c, ["nodetype"]); | ||||
|                     if ( $type and ($type->{nodetype} eq 'cec')) { | ||||
|                     #my $type = $ppctab->getNodeAttribs($c, ["nodetype"]); | ||||
|                     my $type = getnodetype($c); | ||||
|                     if ( $type eq 'cec') { | ||||
|                         push @{$::PARENT_CHILDREN_CEC{$p}}, $c; | ||||
|                     } | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user