summaryrefslogtreecommitdiffstats
path: root/share/newton_base
diff options
context:
space:
mode:
Diffstat (limited to 'share/newton_base')
-rw-r--r--share/newton_base/openoapi/tenants.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/newton_base/openoapi/tenants.py b/share/newton_base/openoapi/tenants.py
index 71439411..a048a36e 100644
--- a/share/newton_base/openoapi/tenants.py
+++ b/share/newton_base/openoapi/tenants.py
@@ -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)