summaryrefslogtreecommitdiffstats
path: root/newton/newton/registration
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2017-09-13 17:57:00 +0800
committerBin Yang <bin.yang@windriver.com>2017-09-13 17:57:00 +0800
commit51f18c6e84a88eaea53237b3a21d32ad4ab0e8a5 (patch)
treeaed163e17ddfde30bb46e9aafa857550b07d1f05 /newton/newton/registration
parent530818aab2a02921e0445b6062260aad9e4b2810 (diff)
Refactor newton and ocato proxy
refactor code and fix bugs to update proxy prefix Change-Id: I4a02b0570759f087581e875cc683d4475bd2121b Issue-Id: MULTICLOUD-89 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'newton/newton/registration')
-rw-r--r--newton/newton/registration/views/registration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/newton/newton/registration/views/registration.py b/newton/newton/registration/views/registration.py
index 131a58e0..25231d7c 100644
--- a/newton/newton/registration/views/registration.py
+++ b/newton/newton/registration/views/registration.py
@@ -33,9 +33,9 @@ DEBUG=True
class Registry(APIView):
def __init__(self):
+ self.proxy_prefix = config.MULTICLOUD_PREFIX
self._logger = logger
-
def update_tenant(self, cloud_owner, cloud_region_id, tenantinfo):
'''
populate tenant into AAI
@@ -668,7 +668,7 @@ class Registry(APIView):
# populate proxy identity url
cloud_owner, cloud_region_id = extsys.decode_vim_id(vimid)
self.update_proxy_identity_endpoint(cloud_owner, cloud_region_id,
- config.MULTICLOUD_PREFIX + "/%s/identity/v3" % vimid)
+ self.proxy_prefix + "/%s/identity/v3" % vimid)
# prepare request resource to vim instance
# get token: