aci plugin: Fix internal error when ACIs are not readable

Part of the work for: https://fedorahosted.org/freeipa/ticket/3566

Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
Petr Viktorin 2014-05-27 16:41:43 +02:00
parent 8bbd52e347
commit 647fa1db85

View File

@ -546,7 +546,7 @@ class aci_add(crud.Create):
raise errors.DuplicateEntry()
newaci_str = unicode(newaci)
entry['aci'].append(newaci_str)
entry.setdefault('aci', []).append(newaci_str)
if not kw.get('test', False):
ldap.update_entry(entry)