summaryrefslogtreecommitdiffstats
path: root/share/newton_base/registration
diff options
context:
space:
mode:
Diffstat (limited to 'share/newton_base/registration')
-rw-r--r--share/newton_base/registration/registration.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/share/newton_base/registration/registration.py b/share/newton_base/registration/registration.py
index 726eb691..67004390 100644
--- a/share/newton_base/registration/registration.py
+++ b/share/newton_base/registration/registration.py
@@ -47,12 +47,9 @@ class Registry(APIView):
self._logger.info("request returns with status %s" % resp.status_code)
if resp.status_code == status.HTTP_200_OK:
self._logger.debug("with content:%s" % resp.json())
- pass
- content = resp.json()
-
- if resp.status_code != status.HTTP_200_OK:
- return # failed to discover resources
- return content.get(content_key)
+ content = resp.json()
+ return content.get(content_key)
+ return # failed to discover resources
def _update_resoure(self, cloud_owner, cloud_region_id,
resoure_id, resource_info, resource_type):