diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-01-28 07:33:51 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:45 +0100 |
commit | 66eaf1220da3e3fccd54b8f6a54f7d116818b024 (patch) | |
tree | e3111f7920c86fd1828232264613b5c6ef3c625d /ipaserver | |
parent | 6eeb5ecbead539c684d20fc02b340bc8aa1cc8b8 (diff) | |
download | freeipa-66eaf1220da3e3fccd54b8f6a54f7d116818b024.tar.gz freeipa-66eaf1220da3e3fccd54b8f6a54f7d116818b024.tar.xz freeipa-66eaf1220da3e3fccd54b8f6a54f7d116818b024.zip |
Remove special-casing for missing and single-valued attributes in LDAPUpdate._entry_to_entity
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/ldapupdate.py | 6 |
1 files changed, 0 insertions, 6 deletions
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 |