From 3168940f34369a86c31eeb885846858832549f69 Mon Sep 17 00:00:00 2001 From: James Chapman Date: Fri, 6 Dec 2024 15:34:49 +0000 Subject: [PATCH] remove debug trace and reportng if attr index doesnt exist --- src/lib389/lib389/plugins.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib389/lib389/plugins.py b/src/lib389/lib389/plugins.py index 0809e2f89..0a3763096 100644 --- a/src/lib389/lib389/plugins.py +++ b/src/lib389/lib389/plugins.py @@ -833,7 +833,6 @@ def _lint_member_substring_index(self): backends = Backends(self._instance).list() attrs = self.get_attr_vals_utf8_l("memberofgroupattr") container = self.get_attr_val_utf8_l("nsslapd-plugincontainerscope") - #import pdb; pdb.set_trace() for backend in backends: suffix = backend.get_attr_val_utf8_l('nsslapd-suffix') if suffix == "cn=changelog": @@ -866,16 +865,7 @@ def _lint_member_substring_index(self): report['check'] = f'attr:substring_index' yield report except: - # No index at all, bad - report['detail'] = report['detail'].replace('ATTR', attr) - report['detail'] = report['detail'].replace('BACKEND', suffix) - report['fix'] = report['fix'].replace('ATTR', attr) - report['fix'] = report['fix'].replace('BACKEND', suffix) - report['fix'] = report['fix'].replace('YOUR_INSTANCE', self._instance.serverid) - report['items'].append(suffix) - report['items'].append(attr) - report['check'] = f'attr:substring_index' - yield report + pass def get_attr(self): """Get memberofattr attribute"""