From ba97c6ef5f6cda54d9b187770e57777f6ae22abc Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Fri, 13 Oct 2017 14:42:56 +0800 Subject: Fix openstack plugin identity error Change-Id: I358d32cdbb12698aa4e6fa3517c2465888bf68de Issue-Id: MULTICLOUD-115 Signed-off-by: Bin Yang --- newton/newton/proxy/views/identityV3.py | 8 ++++---- 1 file 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") -- cgit 1.2.3-korg