summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-06-25 11:50:02 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-06-25 11:50:02 +0200
commite72a6103abcf8f41868e015d60a74d86151c3bd6 (patch)
tree038bb6d5713e7c8275d6f6a44a3c97260eb05e5b /pykolab
parent4b1f0279d79478555d9d568a58199759296a7b2e (diff)
downloadpykolab-e72a6103abcf8f41868e015d60a74d86151c3bd6.tar.gz
Also return a parseable list of domains when no domains are to be listed
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/auth/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py
index 04c286d..3d1141c 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -231,13 +231,13 @@ class Auth(pykolab.base.Base):
domains = self._auth._list_domains(domain)
except:
if not self.domain == kolab_primary_domain:
- return { self.domain: [] }
+ return { self.domain: self.domain }
else:
- domains = []
+ domains = {}
# If no domains are found, the primary domain is used.
if len(domains) < 1:
- self.domains = { kolab_primary_domain: [] }
+ self.domains = { kolab_primary_domain: kolab_primary_domain }
else:
self.domains = {}
for primary, secondaries in domains: