Skip to content

Commit

Permalink
HORI-5247 Bypass get_domain call to keystone api
Browse files Browse the repository at this point in the history
Warnings in horizon and keystone logs about 'Federated' domain

This fix will allow horizon to not attempt calls to retrivev domains
that do not exists.  The 'Federated' domain is a virtual domain that has
no record in the keystone database.

Change-Id: I9c78eda02308860f6f7d44e9d4fe59835edf6ad3
Upstream-ref: none
  • Loading branch information
ngudanie committed Mar 15, 2016
1 parent 395c531 commit 6cddba9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion openstack_dashboard/api/keystone.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,12 @@ def get_default_domain(request, get_name=True):
# if no domain context set, default to user's domain
domain_id = request.user.user_domain_id
domain_name = request.user.user_domain_name
if get_name:

federated = False
if domain_id:
federated = domain_id.upper() == 'FEDERATED'

if get_name and not federated:
try:
domain = domain_get(request, domain_id)
domain_name = domain.name
Expand Down

0 comments on commit 6cddba9

Please sign in to comment.