Fix debug output in integration test

Recent ipaldap work has made LDAPEntry incompatible with python-ldap's
LDIFWriter.
Convert entry to dict before printing debug output.
This commit is contained in:
Petr Viktorin 2013-11-01 15:17:46 +01:00
parent 9cbb94cd66
commit 1f6880c590

View File

@ -596,7 +596,7 @@ def _entries_to_ldif(entries):
io = StringIO.StringIO()
writer = LDIFWriter(io)
for entry in entries:
writer.unparse(str(entry.dn), entry)
writer.unparse(str(entry.dn), dict(entry))
return io.getvalue()