Add 'is_admin_project' attribute in token
In mitaka, keystone supports is_admin_project attribute. https://blueprints.launchpad.net/keystone/+spec/is-admin-project This patch will support this attribute. Change-Id: I1531019d55eaa752f1560092a376bc19be6f3db2 Closes-Bug: #1602528
This commit is contained in:
@@ -101,6 +101,8 @@ class Token(object):
|
||||
project = {}
|
||||
project['id'] = auth_ref.project_id
|
||||
project['name'] = auth_ref.project_name
|
||||
project['is_admin_project'] = getattr(auth_ref, 'is_admin_project',
|
||||
False)
|
||||
self.project = project
|
||||
self.tenant = self.project
|
||||
|
||||
|
||||
Reference in New Issue
Block a user