2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

Ignore groups inheritance for ppcdirect table as the special desgin (#2893)

This patch aims to fix the error from automation testcase
`chdef_multiple_keys` due to the changes to support groups inheritance
for switches table.
As the strange design about access_tabentry, ppcdirect works like site
table and must not support groups.

Close-issue: #2450
This commit is contained in:
chenglch
2017-04-20 13:06:27 +08:00
committed by yangsong
parent 2662038b29
commit fd3e9f3d18

View File

@ -490,7 +490,7 @@ sub getobjdefs
# The %tabhash is for performance considerations
my $tabspec = $xCAT::Schema::tabspec{$lookup_table};
my $nodecol = $tabspec->{'nodecol'} if defined($tabspec->{'nodecol'});
if (($lookup_attr eq 'node' && $objtype eq 'node') || (defined($nodecol) && $objtype eq 'node')) {
if (($lookup_attr eq 'node' && $objtype eq 'node') || (defined($nodecol) && $objtype eq 'node' && $lookup_table ne 'ppcdirect')) {
if (defined($tabhash{$lookup_table}{$objname}{$tabattr})) {
if ($verbose == 1) {
$objhash{$objname}{$attr} = "$tabhash{$lookup_table}{$objname}{$tabattr}\t(Table:$lookup_table - Key:$lookup_attr - Column:$tabattr)";