Merge "Make domain_lookup return consistent type"
This commit is contained in:
commit
4837656b32
|
@ -247,7 +247,7 @@ def domain_lookup(request):
|
||||||
return dict((d.id, d.name) for d in domains)
|
return dict((d.id, d.name) for d in domains)
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.warning("Pure project admin doesn't have a domain token")
|
LOG.warning("Pure project admin doesn't have a domain token")
|
||||||
return None
|
return {}
|
||||||
else:
|
else:
|
||||||
domain = get_default_domain(request)
|
domain = get_default_domain(request)
|
||||||
return {domain.id: domain.name}
|
return {domain.id: domain.name}
|
||||||
|
|
Loading…
Reference in New Issue