Store project_domain in project_domain_id

The same way that context was changed to store the attribute in
user_domain_id, use project_domain_id to remove some errors.

Change-Id: I591b6644e113cc90eeb2aff6b628a649ae8d4740
Related-Bug: #1663013
(cherry picked from commit 37b1f7c963)
This commit is contained in:
Thomas Herve 2017-03-09 09:45:10 +01:00 committed by Ethan Lynn
parent e2a317a6ab
commit 0568795758
1 changed files with 2 additions and 2 deletions

View File

@ -327,11 +327,11 @@ class StoredContext(RequestContext):
def project_domain(self):
if not getattr(self, '_keystone_loaded', False):
self._load_keystone_data()
return self._project_domain
return self._project_domain_id
@project_domain.setter
def project_domain(self, project_domain):
self._project_domain = project_domain
self._project_domain_id = project_domain
def get_admin_context(show_deleted=False):