]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Fixed typo in lib/pp_admintools/config/mirror_ldap.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 26 Jan 2024 13:07:29 +0000 (14:07 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 26 Jan 2024 13:07:29 +0000 (14:07 +0100)
lib/pp_admintools/config/mirror_ldap.py

index 5f7fa8fae82ab3ada4210950b938323200ca6538..86bf4ba9e617c0460cc38a64b405b38ce990bd2e 100644 (file)
@@ -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)
 
 
 # =============================================================================