summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2017-10-13 14:42:56 +0800
committerBin Yang <bin.yang@windriver.com>2017-10-13 14:42:56 +0800
commitba97c6ef5f6cda54d9b187770e57777f6ae22abc (patch)
tree3c5d65cbd4b2bcc6a26cab26eed270d94579ee7e
parent1edcf2d1278419ec8862362b7dd9686169a4f654 (diff)
Fix openstack plugin identity error
Change-Id: I358d32cdbb12698aa4e6fa3517c2465888bf68de Issue-Id: MULTICLOUD-115 Signed-off-by: Bin Yang <bin.yang@windriver.com>
-rw-r--r--newton/newton/proxy/views/identityV3.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/newton/newton/proxy/views/identityV3.py b/newton/newton/proxy/views/identityV3.py
index 3fa124c9..048d5a0f 100644
--- a/newton/newton/proxy/views/identityV3.py
+++ b/newton/newton/proxy/views/identityV3.py
@@ -59,11 +59,11 @@ class Tokens(APIView):
#keystone v3 API
if not tenant_name and request.data.get("auth") \
and request.data["auth"].get("scope")\
- and request["auth"]["scope"].get("project"):
- if request["auth"]["scope"]["project"].get("name"):
- tenant_name = request["auth"]["scope"]["project"].get("name")
+ and request.data["auth"]["scope"].get("project"):
+ if request.data["auth"]["scope"]["project"].get("name"):
+ tenant_name = request.data["auth"]["scope"]["project"].get("name")
else:
- tenant_id = request["auth"]["scope"]["project"].get("id")
+ tenant_id = request.data["auth"]["scope"]["project"].get("id")