From 66eaf1220da3e3fccd54b8f6a54f7d116818b024 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 28 Jan 2013 07:33:51 -0500 Subject: Remove special-casing for missing and single-valued attributes in LDAPUpdate._entry_to_entity --- ipaserver/install/ldapupdate.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ipaserver/install/ldapupdate.py') diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index 23d332d30..55f0ecaf9 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -246,12 +246,6 @@ class LDAPUpdate: def _entry_to_entity(self, ent): entry = ent.copy() - for key,value in entry.iteritems(): - if isinstance(value,list) or isinstance(value,tuple): - if len(value) == 0: - entry[key] = '' - elif len(value) == 1: - entry[key] = value[0] entry.commit() return entry -- cgit