summaryrefslogtreecommitdiffstats
path: root/newton
diff options
context:
space:
mode:
Diffstat (limited to 'newton')
-rw-r--r--newton/newton/proxy/views/identityV3.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/newton/newton/proxy/views/identityV3.py b/newton/newton/proxy/views/identityV3.py
index 36f488a2..bf63ad6a 100644
--- a/newton/newton/proxy/views/identityV3.py
+++ b/newton/newton/proxy/views/identityV3.py
@@ -51,6 +51,10 @@ class Tokens(APIView):
try:
tenant_name = request.data.get("tenant_name")
+ #backward support for keystone v2.0 API
+ if not tenant_name and request.data.get("auth"):
+ tenant_name = request.data["auth"].get("tenant_name")
+
# prepare request resource to vim instance
vim = VimDriverUtils.get_vim_info(vimid)
sess = VimDriverUtils.get_session(vim, tenantname = tenant_name)