summaryrefslogtreecommitdiffstats
path: root/wallace/module_resources.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-06 11:41:28 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-06 11:41:28 -0400
commit9151feafa799c0795845f2a020d38da4f45b4437 (patch)
tree5839daa6f0d2330e35ea8dc5f5894c2ff6f2f9eb /wallace/module_resources.py
parentd8261c6f358f04558ed0251b79c4ce226936f982 (diff)
downloadpykolab-9151feafa799c0795845f2a020d38da4f45b4437.tar.gz
Make sure 'uniquemember' is a list
Diffstat (limited to 'wallace/module_resources.py')
-rw-r--r--wallace/module_resources.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wallace/module_resources.py b/wallace/module_resources.py
index d65120c..c0983ca 100644
--- a/wallace/module_resources.py
+++ b/wallace/module_resources.py
@@ -903,6 +903,8 @@ def get_resource_records(resource_dns):
if not 'kolabsharedfolder' in [x.lower() for x in resource_attrs['objectclass']]:
if resource_attrs.has_key('uniquemember'):
+ if not isinstance(resource_attrs['uniquemember'], list):
+ resource_attrs['uniquemember'] = [ resource_attrs['uniquemember'] ]
resources[resource_dn] = resource_attrs
for uniquemember in resource_attrs['uniquemember']:
member_attrs = auth.get_entry_attributes(