]> Frank Brehm's Git Trees - pixelpark/ldap-migration.git/commitdiff
Changing debug output.
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 28 Oct 2021 16:08:07 +0000 (18:08 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 28 Oct 2021 16:08:07 +0000 (18:08 +0200)
lib/ldap_migration/__init__.py

index 28ca38e1c05e15d2ec63091a729da35dc3eb02ef..e4e301be75351dfb725f04b5bd37aad3ccb87612 100644 (file)
@@ -2256,10 +2256,12 @@ class LDAPMigrationApplication(BaseApplication):
                 except LDAPException as e:
                     msg = "Modifying NOT successfull - {c}: {e}\n"
                     msg += "Source attributes:\n{sattr}\n"
+                    msg += "Target attributes:\n{tattr}\n"
                     msg += "Changes:\n{ch}"
                     msg = msg.format(
                         c=e.__class__.__name__, e=e,
-                        sattr=pp(src_entry['attributes']), ch=pp(changes))
+                        sattr=pp(src_entry['attributes']),
+                        tattr=pp(tgt_entry['attributes']), ch=pp(changes))
                     raise WriteLDAPItemError(msg)
                 if mod_status:
                     LOG.debug("Modifying successfull.")