From 1f6880c59059496f5002111cd0b5f16cc51961db Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 1 Nov 2013 15:17:46 +0100 Subject: [PATCH] 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. --- ipatests/test_integration/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py index 6c36d3451..d30258761 100644 --- a/ipatests/test_integration/tasks.py +++ b/ipatests/test_integration/tasks.py @@ -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()