Fix issue with keystone v2.0 26/72926/1
authorbharath <bharath_ves@hotmail.com>
Fri, 16 Nov 2018 17:36:52 +0000 (23:06 +0530)
committerbharath <bharath_ves@hotmail.com>
Fri, 16 Nov 2018 17:38:05 +0000 (23:08 +0530)
Issue-ID: MULTICLOUD-386
Change-Id: Ib19ad639c76754fa7a9f6efea449ab5df17afada
Signed-Off-By: Bharath Thiruveedula <bharath_ves@hotmail.com>
share/newton_base/openoapi/tenants.py

index 7143941..a048a36 100644 (file)
@@ -48,8 +48,8 @@ class Tenants(APIView):
 
             vim = VimDriverUtils.get_vim_info(vimid)
             req_resouce = "/projects"
-            if '/v2' in vim["url"]:
-                req_resouce = "/v2.0/tenants"
+            if '/v2.0' in vim["url"]:
+                req_resouce = "/tenants"
 
             sess = VimDriverUtils.get_session(vim)