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:
parent
722da65541
commit
01260508a4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user