From 647fa1db85c108f57d95a3f5e486525610b8ade4 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: May 29 2014 14:22:37 +0000 Subject: 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 --- diff --git a/ipalib/plugins/aci.py b/ipalib/plugins/aci.py index 4821089..1589098 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)