tricircle/tricircle/common
zhangxiaohan bcc307ae5b The admin role judge exception caused the policy to fail
1. What is the problem?

Caused the policy to fail When use 'admin' role to create pod,
Error response is "Unauthorized to create pods".

2. What is the solution to the problem?
In context, the 'HTTP_X_ROLE' maybe include mutilple role, so use
'admin' in environ.get('HTTP_X_ROLE') to judge rather than equality.

Change-Id: If0a765603e56e0325a31f7a3e0202f52fd1cbe38
2018-08-21 11:44:12 +08:00
..
__init__.py cascade_service framework 2015-08-05 14:49:25 +03:00
baserpc.py Fix incorrect file permission 2016-05-24 16:04:16 +08:00
client.py QoS implementation(Part1: Qos Plugin) 2017-11-24 16:01:04 +08:00
config.py Remove log translations 2017-04-11 09:17:08 +08:00
constants.py Modify code for release port when delete vm 2018-05-28 11:21:20 +08:00
context.py The admin role judge exception caused the policy to fail 2018-08-21 11:44:12 +08:00
exceptions.py code for resource deleting 2018-02-28 19:16:03 +08:00
httpclient.py Remove log translations 2017-04-11 09:17:08 +08:00
i18n.py Remove log translations 2017-04-11 09:17:08 +08:00
lock_handle.py Add unit tests for lock_handle module 2017-02-09 19:27:10 +08:00
opts.py Move statless design from experiment to master branch 2016-01-14 12:56:57 +08:00
policy.py Use DocumentedRuleDefault instead of RuleDefault 2017-10-18 01:02:55 +00:00
request_source.py Distinguish the source of requests 2017-12-06 16:43:53 +08:00
resource_handle.py Security group deletion 2018-03-27 17:11:56 +08:00
restapp.py Enable mutable config in Tricircle 2018-03-28 08:43:47 +08:00
rpc.py Merge "Set access_policy for messaging's dispatcher" 2017-06-14 13:41:13 +00:00
serializer.py Clean imports in code 2017-02-06 13:12:57 +07:00
topics.py Fix incorrect file permission 2016-05-24 16:04:16 +08:00
utils.py Support pagination for resource routing list operations 2017-07-12 17:09:48 +08:00
version.py Move statless design from experiment to master branch 2016-01-14 12:56:57 +08:00
xrpcapi.py QoS implementation(Part1: Qos Plugin) 2017-11-24 16:01:04 +08:00