From 66eaf1220da3e3fccd54b8f6a54f7d116818b024 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mar 01 2013 15:59:45 +0000 Subject: Remove special-casing for missing and single-valued attributes in LDAPUpdate._entry_to_entity --- diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index 23d332d..55f0eca 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