From 400e1b7c35a1db4cdcf20f4453631bc0888a330f Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Wed, 15 Aug 2018 06:11:24 +0000 Subject: API upgrading for OPENOAPI Change-Id: I8d0fdc7671d9333ee24e77dda9e07c32a0767950 Issue-ID: MULTICLOUD-297 Signed-off-by: Bin Yang --- windriver/titanium_cloud/registration/views/registration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'windriver/titanium_cloud/registration') diff --git a/windriver/titanium_cloud/registration/views/registration.py b/windriver/titanium_cloud/registration/views/registration.py index b54772e3..5bf3f1c5 100644 --- a/windriver/titanium_cloud/registration/views/registration.py +++ b/windriver/titanium_cloud/registration/views/registration.py @@ -365,7 +365,8 @@ class Registry(newton_registration.Registry): return instruction_capability -class RegistryV1(Registry): +class APIv1Registry(Registry): + def __init__(self): self.proxy_prefix = settings.MULTICLOUD_API_V1_PREFIX self.aai_base_url = settings.AAI_BASE_URL @@ -373,13 +374,12 @@ class RegistryV1(Registry): def post(self, request, cloud_owner="", cloud_region_id=""): self._logger.info("registration with : %s, %s" % (cloud_owner, cloud_region_id)) - self._logger.debug("with data: %s" % request.data) vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id) - return super(RegistryV1, self).post(request, vimid) + return super(APIv1Registry, self).post(request, vimid) def delete(self, request, cloud_owner="", cloud_region_id=""): self._logger.debug("unregister cloud region: %s, %s" % (cloud_owner, cloud_region_id)) vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id) - return super(RegistryV1, self).delete(request, vimid) + return super(APIv1Registry, self).delete(request, vimid) -- cgit 1.2.3-korg