From fd3e9f3d18e553bf24ebc4a550a2e6f1185dedfc Mon Sep 17 00:00:00 2001 From: chenglch Date: Thu, 20 Apr 2017 13:06:27 +0800 Subject: [PATCH] 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 --- perl-xCAT/xCAT/DBobjUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/DBobjUtils.pm b/perl-xCAT/xCAT/DBobjUtils.pm index 5c9679688..0bc7e2286 100755 --- a/perl-xCAT/xCAT/DBobjUtils.pm +++ b/perl-xCAT/xCAT/DBobjUtils.pm @@ -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)";