]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Make the linter happy
authorFrank Brehm <frank@brehm-online.com>
Tue, 1 Nov 2022 13:17:54 +0000 (14:17 +0100)
committerFrank Brehm <frank@brehm-online.com>
Tue, 1 Nov 2022 13:17:54 +0000 (14:17 +0100)
lib/pp_admintools/app/ldap.py

index 3cf77c9da43fa5c775dc8890c0ba6ef8fbd9687c..69758d27d092f6e509ddcea3e353ad1e3570c641 100644 (file)
@@ -54,7 +54,7 @@ from ..config.ldap import LdapConnectionInfo, LdapConfiguration
 # rom ..config.ldap import DEFAULT_PORT_LDAP, DEFAULT_PORT_LDAPS
 from ..config.ldap import DEFAULT_TIMEOUT
 
-__version__ = '0.10.3'
+__version__ = '0.10.4'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -1166,10 +1166,11 @@ class BaseLdapApplication(BaseDPXApplication):
         if not ldap:
             ldap = self.ldap_connection[inst]
 
-        if self.verbose > 1:
+        if self.verbose > 2:
             msg = _("Creating changes on {uri} to DN {dn!r}:").format(
                 uri=connect_info.url, dn=dn)
-            LOG.debug(msg + '\n' + pp(changes))
+            msg += '\nobjectClasses:\n' + pp(object_classes)
+            msg += "\nAttributes:\n" + pp(target_entry)
 
         if self.simulate:
             LOG.info(_("Simulation mode - entry will not be created."))
@@ -1206,8 +1207,6 @@ class BaseLdapApplication(BaseDPXApplication):
         LOG.debug(_('Creation successful.'))
         return True
 
-
-
     # -------------------------------------------------------------------------
     def modify_entry(self, inst, dn, changes, ldap=None):
         """Mofifying an existing LDAP entry."""