mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-12 16:32:01 -05:00
Remove special-casing for missing and single-valued attributes in LDAPUpdate._entry_to_entity
This commit is contained in:
1 parent
6eeb5ecbea
commit
66eaf1220d
1 file changed
-6
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user