summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenji Ishii <ken-ishii@sx.jp.nec.com>2016-07-13 15:53:44 +0900
committerKenji Ishii <ken-ishii@sx.jp.nec.com>2016-07-14 10:36:30 +0900
commit9ad524b2153b0fcc4be02c662eec28d0fbeeb5e8 (patch)
tree1df333497cacc2d960a3203cf84c88bf78aa952a
parent6e58b9fbc2782efa055662fe3faf3a3551f4b594 (diff)
downloaddjango_openstack_auth-9ad524b2153b0fcc4be02c662eec28d0fbeeb5e8.tar.gz
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
-rw-r--r--openstack_auth/user.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/openstack_auth/user.py b/openstack_auth/user.py
index c55121b..c9200f4 100644
--- a/openstack_auth/user.py
+++ b/openstack_auth/user.py
@@ -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