From 647fa1db85c108f57d95a3f5e486525610b8ade4 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 27 May 2014 16:41:43 +0200 Subject: [PATCH] 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 --- ipalib/plugins/aci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)