summaryrefslogtreecommitdiffstats
path: root/share/newton_base/registration/registration.py
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-04-28 01:28:52 +0800
committerYun Huang <yun.huang@windriver.com>2018-04-28 01:28:52 +0800
commitd7ba7ff30d0aef3fb4e5c7fcaafee34c5834489d (patch)
treeead8953326bee5780c4b61962fcf1afc079f8cf8 /share/newton_base/registration/registration.py
parent8a033231ae6341745cd4a5b12422f10c261c5c2f (diff)
Fix HPA registration bug for Titanium Cloud
Change-Id: Ia40640e3077ec6f4a60c2efd3ac4f244021dfb5a Issue-ID: MULTICLOUD-206 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'share/newton_base/registration/registration.py')
-rw-r--r--share/newton_base/registration/registration.py18
1 files changed, 9 insertions, 9 deletions
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]: