From 0b321948ed2e1304dac75ca84dfe137fd55f3917 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 26 Jan 2024 14:07:29 +0100 Subject: [PATCH] Fixed typo in lib/pp_admintools/config/mirror_ldap.py --- lib/pp_admintools/config/mirror_ldap.py | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/pp_admintools/config/mirror_ldap.py b/lib/pp_admintools/config/mirror_ldap.py index 5f7fa8f..86bf4ba 100644 --- a/lib/pp_admintools/config/mirror_ldap.py +++ b/lib/pp_admintools/config/mirror_ldap.py @@ -26,7 +26,7 @@ from .. import DEFAULT_CONFIG_DIR from .. import pp from ..xlate import XLATOR -__version__ = '0.3.0' +__version__ = '0.3.1' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -63,7 +63,7 @@ class MirrorLdapConfiguration(LdapConfiguration): """Initialize the MirrorLdapConfiguration object.""" self.entries_keep = {} self.transform = {} - self.entries_mofify = {} + self.entries_modify = {} self.action_list = format_list(self.valid_modify_actions, do_repr=True) @@ -258,19 +258,19 @@ class MirrorLdapConfiguration(LdapConfiguration): # ------------------------------------------------------------------------- def _set_modify_action(self, inst_name, dn_pattern, action_lc, entry, value): - if inst_name not in self.entries_mofify: - self.entries_mofify[inst_name] = {} - if dn_pattern not in self.entries_mofify[inst_name]: - self.entries_mofify[inst_name][dn_pattern] = {} - if action_lc not in self.entries_mofify[inst_name][dn_pattern]: - self.entries_mofify[inst_name][dn_pattern][action_lc] = {} - if entry not in self.entries_mofify[inst_name][dn_pattern][action_lc]: - self.entries_mofify[inst_name][dn_pattern][action_lc][entry] = None + if inst_name not in self.entries_modify: + self.entries_modify[inst_name] = {} + if dn_pattern not in self.entries_modify[inst_name]: + self.entries_modify[inst_name][dn_pattern] = {} + if action_lc not in self.entries_modify[inst_name][dn_pattern]: + self.entries_modify[inst_name][dn_pattern][action_lc] = {} + if entry not in self.entries_modify[inst_name][dn_pattern][action_lc]: + self.entries_modify[inst_name][dn_pattern][action_lc][entry] = None if value is not None: - if self.entries_mofify[inst_name][dn_pattern][action_lc][entry] is None: - self.entries_mofify[inst_name][dn_pattern][action_lc][entry] = [] - if value not in self.entries_mofify[inst_name][dn_pattern][action_lc][entry]: - self.entries_mofify[inst_name][dn_pattern][action_lc][entry].append(value) + if self.entries_modify[inst_name][dn_pattern][action_lc][entry] is None: + self.entries_modify[inst_name][dn_pattern][action_lc][entry] = [] + if value not in self.entries_modify[inst_name][dn_pattern][action_lc][entry]: + self.entries_modify[inst_name][dn_pattern][action_lc][entry].append(value) # ============================================================================= -- 2.39.5