Merge "Make domain_lookup return consistent type"

This commit is contained in:
Zuul
2019-03-18 18:40:23 +00:00
committed by Gerrit Code Review

View File

@@ -247,7 +247,7 @@ def domain_lookup(request):
return dict((d.id, d.name) for d in domains)
except Exception:
LOG.warning("Pure project admin doesn't have a domain token")
return None
return {}
else:
domain = get_default_domain(request)
return {domain.id: domain.name}