summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/aci.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2014-05-27 16:41:43 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-05-29 16:22:37 +0200
commit647fa1db85c108f57d95a3f5e486525610b8ade4 (patch)
treeed0be1de83fe76ea5ecb06331e17d8d6b236ca96 /ipalib/plugins/aci.py
parent8bbd52e347f3e6395d469528e1220fd9158e5609 (diff)
downloadfreeipa-647fa1db85c108f57d95a3f5e486525610b8ade4.tar.gz
freeipa-647fa1db85c108f57d95a3f5e486525610b8ade4.tar.xz
freeipa-647fa1db85c108f57d95a3f5e486525610b8ade4.zip
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>
Diffstat (limited to 'ipalib/plugins/aci.py')
-rw-r--r--ipalib/plugins/aci.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/aci.py b/ipalib/plugins/aci.py
index 4821089f1..158909837 100644
--- a/ipalib/plugins/aci.py
+++ b/ipalib/plugins/aci.py
@@ -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)