summaryrefslogtreecommitdiffstats
path: root/ipa-server
diff options
context:
space:
mode:
authorKevin McCarthy <kmccarth@redhat.com>2007-10-15 14:55:42 -0700
committerKevin McCarthy <kmccarth@redhat.com>2007-10-15 14:55:42 -0700
commit60e78feebade26722701860570676d38da3fa36f (patch)
tree46b66fe4f6ca5b04710653f2bd99283537bc4df2 /ipa-server
parent40930c9b1124fe09bb650de4b4a272a535904dd2 (diff)
downloadfreeipa-60e78feebade26722701860570676d38da3fa36f.tar.gz
freeipa-60e78feebade26722701860570676d38da3fa36f.tar.xz
freeipa-60e78feebade26722701860570676d38da3fa36f.zip
Fix for when there's a single ACI.
Diffstat (limited to 'ipa-server')
-rw-r--r--ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py b/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py
index 6e31b403d..32f7c8c31 100644
--- a/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py
+++ b/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py
@@ -125,6 +125,8 @@ class DelegationController(IPAController):
aci_str_list = aci_entry.getValues('aci')
if aci_str_list is None:
aci_str_list = []
+ if not(isinstance(aci_str_list,list) or isinstance(aci_str_list,tuple)):
+ aci_str_list = [aci_str_list]
try :
old_aci_index = aci_str_list.index(kw['orig_acistr'])
@@ -171,6 +173,8 @@ class DelegationController(IPAController):
aci_str_list = aci_entry.getValues('aci')
if aci_str_list is None:
aci_str_list = []
+ if not(isinstance(aci_str_list,list) or isinstance(aci_str_list,tuple)):
+ aci_str_list = [aci_str_list]
aci_list = []
for aci_str in aci_str_list: