diff options
author | Bin Yang <bin.yang@windriver.com> | 2017-09-30 00:02:32 +0800 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2017-09-30 00:02:32 +0800 |
commit | e7aa33e8215424508e5831cd91479e23a0c43e32 (patch) | |
tree | 26f14b61e040550efe4e0aa7e2bce46a3f09da1d /newton | |
parent | a9206ba5476eaaf0d4e5ab1f8fa6c5752f539882 (diff) |
Add UT for ocata and windriver
Change-Id: I6b921443cdd1181e1953962afeb11a706329c5e9
Issue-Id: MULTICLOUD-83
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'newton')
-rw-r--r-- | newton/newton/proxy/views/identityV3.py | 4 |
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) |