summaryrefslogtreecommitdiffstats
path: root/share/newton_base/openoapi/hosts.py
diff options
context:
space:
mode:
authorzhang ab <zhanganbing@chinamobile.com>2018-04-25 04:01:20 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-25 04:01:20 +0000
commitdfb8ab23ab81f51f7fad515c75dcc44f03880d80 (patch)
treec01449d3de8a46b66f6394beb34f0f74e177c83a /share/newton_base/openoapi/hosts.py
parent71755ec8f3e124d2ea13100122a0947d79fd2993 (diff)
parent53466a21fc2441c0dee5aab835f704c4cc0d684a (diff)
Merge "Logging enhancement for openo image API"
Diffstat (limited to 'share/newton_base/openoapi/hosts.py')
-rw-r--r--share/newton_base/openoapi/hosts.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/newton_base/openoapi/hosts.py b/share/newton_base/openoapi/hosts.py
index ddcbe4f0..2d50886f 100644
--- a/share/newton_base/openoapi/hosts.py
+++ b/share/newton_base/openoapi/hosts.py
@@ -50,7 +50,14 @@ class Hosts(APIView):
vim = VimDriverUtils.get_vim_info(vimid)
sess = VimDriverUtils.get_session(vim, tenantid)
+
+ logger.info("making request with URI:%s" % req_resouce)
resp = sess.get(req_resouce, endpoint_filter=self.service)
+ 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())
+ pass
+
content = resp.json()
vim_dict = {
"vimName": vim["name"],