From 6ed20b6d4887a34987b4aad0ad58b00f863887c1 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 1 Nov 2022 14:17:54 +0100 Subject: [PATCH] Make the linter happy --- lib/pp_admintools/app/ldap.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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.""" -- 2.39.5