Skip to content

Commit

Permalink
remove debug trace and reportng if attr index doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jchapma committed Dec 6, 2024
1 parent c89f321 commit 3168940
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/lib389/lib389/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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"""
Expand Down

0 comments on commit 3168940

Please sign in to comment.