From: Frank Brehm Date: Tue, 1 Nov 2022 13:17:54 +0000 (+0100) Subject: Make the linter happy X-Git-Tag: 0.7.0^2~1^2~11 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=6ed20b6d4887a34987b4aad0ad58b00f863887c1;p=pixelpark%2Fpp-admin-tools.git Make the linter happy --- diff --git a/lib/pp_admintools/app/ldap.py b/lib/pp_admintools/app/ldap.py index 3cf77c9..69758d2 100644 --- a/lib/pp_admintools/app/ldap.py +++ b/lib/pp_admintools/app/ldap.py @@ -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."""