summaryrefslogtreecommitdiff
path: root/keystonemiddleware
diff options
context:
space:
mode:
authorZhongShengping <chdzsp@163.com>2019-02-14 17:09:21 +0800
committerZhongShengping <chdzsp@163.com>2019-02-15 08:35:24 +0800
commitcaa899b93d845985277277860f90a40cbf7722a2 (patch)
tree165ca442221e04592efb86a83f2ec0290ea7428f /keystonemiddleware
parent1360bab80863cdfb11811480a30c847a2e00cd45 (diff)
downloadkeystonemiddleware-caa899b93d845985277277860f90a40cbf7722a2.tar.gz
Fix service_token_role_required option
The service_token_roles_required should be correct. Change-Id: I009e3a495953d61fb0c29a8b629efa3322cb0ddd
Diffstat (limited to 'keystonemiddleware')
-rw-r--r--keystonemiddleware/auth_token/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/keystonemiddleware/auth_token/__init__.py b/keystonemiddleware/auth_token/__init__.py
index de37aef..72ba223 100644
--- a/keystonemiddleware/auth_token/__init__.py
+++ b/keystonemiddleware/auth_token/__init__.py
@@ -374,9 +374,9 @@ class BaseAuthProtocol(object):
check = self._service_token_roles.intersection(role_names)
role_check_passed = bool(check)
- # if service_token_role_required then the service token is only
- # valid if the roles check out. Otherwise at this point it is
- # true because keystone has already validated it.
+ # if service_token_roles_required then the service token is
+ # only valid if the roles check out. Otherwise at this point it
+ # is true because keystone has already validated it.
if self._service_token_roles_required:
request.service_token_valid = role_check_passed
else: