Fixed a bug that lsslp cannot set CEC's parent to frame defined in xCAT DB

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9527 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2011-05-10 07:37:01 +00:00
parent b37b6e7167
commit 5b46da4788

View File

@ -2421,6 +2421,18 @@ sub parse_responses {
}
}
if ( !defined( $parent ) ) {
if ( exists $vpd_table_hash{$bpamtm . '*' . $bpasn . '-'} ) {
my $existing_node = $vpd_table_hash{$bpamtm . '*' . $bpasn . '-'};
my $type1 = xCAT::DBobjUtils->getnodetype($existing_node);
if ( $type1 eq "frame" and ($type eq TYPE_BPA or $type eq TYPE_CEC) ) {
$parent = $existing_node;
} elsif ( $type1 eq "cec" and $type eq TYPE_FSP ) {
$parent = $existing_node;
}
}
}
push @$data, $parent;