mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove special-casing for missing and single-valued attributes in LDAPUpdate._entry_to_entity
This commit is contained in:
parent
6eeb5ecbea
commit
66eaf1220d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user