summaryrefslogtreecommitdiffstats
path: root/lenovo/thinkcloud/registration/views
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-03-28 13:17:14 +0000
committerBin Yang <bin.yang@windriver.com>2019-04-01 07:51:54 +0000
commit5eecba06f3173ec8d163e34bff287a2b09e5829c (patch)
tree8ba662a324361b45d7f10b672182da97b815d4a3 /lenovo/thinkcloud/registration/views
parent59edc5d9b0f578e0b799c0350b39a08f9b040ab3 (diff)
Initiate a thread to handle registry
To prevent the registry API timeout by offloading the time-consuming registry to a thread Change-Id: I1107bb7f3d9a11bdae4d0a5926f788bc2a534bda Issue-ID: MULTICLOUD-554 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'lenovo/thinkcloud/registration/views')
-rw-r--r--lenovo/thinkcloud/registration/views/registration.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lenovo/thinkcloud/registration/views/registration.py b/lenovo/thinkcloud/registration/views/registration.py
index 0fe4a80e..c55bf712 100644
--- a/lenovo/thinkcloud/registration/views/registration.py
+++ b/lenovo/thinkcloud/registration/views/registration.py
@@ -29,6 +29,7 @@ class Registry(newton_registration.Registry):
self.proxy_prefix = settings.MULTICLOUD_PREFIX
self.aai_base_url = settings.AAI_BASE_URL
self._logger = logger
+ super(Registry, self).__init__()
class RegistryV1(Registry):
@@ -36,6 +37,7 @@ class RegistryV1(Registry):
self.proxy_prefix = settings.MULTICLOUD_API_V1_PREFIX
self.aai_base_url = settings.AAI_BASE_URL
self._logger = logger
+ super(RegistryV1, self).__init__()
def post(self, request, cloud_owner="", cloud_region_id=""):
self._logger.info("registration with : %s, %s" % (cloud_owner, cloud_region_id))