From d7ba7ff30d0aef3fb4e5c7fcaafee34c5834489d Mon Sep 17 00:00:00 2001 From: Yun Huang Date: Sat, 28 Apr 2018 01:28:52 +0800 Subject: Fix HPA registration bug for Titanium Cloud Change-Id: Ia40640e3077ec6f4a60c2efd3ac4f244021dfb5a Issue-ID: MULTICLOUD-206 Signed-off-by: Yun Huang --- share/newton_base/registration/registration.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'share/newton_base') diff --git a/share/newton_base/registration/registration.py b/share/newton_base/registration/registration.py index ecf613b8..726eb691 100644 --- a/share/newton_base/registration/registration.py +++ b/share/newton_base/registration/registration.py @@ -42,11 +42,11 @@ class Registry(APIView): service = {'service_type': service_type, 'interface': 'public', 'region_id': viminfo['cloud_region_id']} - logger.info("making request with URI:%s" % resource_url) + self._logger.info("making request with URI:%s" % resource_url) resp = session.get(resource_url, endpoint_filter=service) - logger.info("request returns with status %s" % resp.status_code) + self._logger.info("request returns with status %s" % resp.status_code) if resp.status_code == status.HTTP_200_OK: - logger.debug("with content:%s" % resp.json()) + self._logger.debug("with content:%s" % resp.json()) pass content = resp.json() @@ -232,11 +232,11 @@ class Registry(APIView): service = {'service_type': "image", 'interface': 'public', 'region_id': viminfo['cloud_region_id']} - logger.info("making request with URI:%s" % req_resource) + self._logger.info("making request with URI:%s" % req_resource) resp = session.get(req_resource, endpoint_filter=service) - logger.info("request returns with status %s" % resp.status_code) + self._logger.info("request returns with status %s" % resp.status_code) if resp.status_code == status.HTTP_200_OK: - logger.debug("with content:%s" % resp.json()) + self._logger.debug("with content:%s" % resp.json()) pass content = resp.json() @@ -275,11 +275,11 @@ class Registry(APIView): service = {'service_type': "compute", 'interface': 'public', 'region_id': viminfo['cloud_region_id']} - logger.info("making request with URI:%s" % req_resource) + self._logger.info("making request with URI:%s" % req_resource) resp = session.get(req_resource, endpoint_filter=service) - logger.info("request returns with status %s" % resp.status_code) + self._logger.info("request returns with status %s" % resp.status_code) if resp.status_code == status.HTTP_200_OK: - logger.debug("with content:%s" % resp.json()) + self._logger.debug("with content:%s" % resp.json()) pass content = resp.json() if resp.status_code != status.HTTP_200_OK and not content[0]: -- cgit 1.2.3-korg