summaryrefslogtreecommitdiffstats
path: root/share/common/utils
diff options
context:
space:
mode:
authorXiaohua Zhang <xiaohua.zhang@windriver.com>2018-09-19 03:12:51 +0000
committerXiaohua Zhang <xiaohua.zhang@windriver.com>2018-09-19 03:12:51 +0000
commit0c40f8947716932fa8b67acc19b3567837eebedc (patch)
treed005e60289e12721079adc530ef9bc0eee73d1a9 /share/common/utils
parente9c7a8ad165a545b4a95e5278f7a709ef5ab805b (diff)
Implement infra_workload delete API
Change-Id: I16f198e44810278eafb5be08ed88268911554f57 Issue-ID: MULTICLOUD-358 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Diffstat (limited to 'share/common/utils')
-rw-r--r--share/common/utils/restcall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/common/utils/restcall.py b/share/common/utils/restcall.py
index 05788bc9..ec3abb30 100644
--- a/share/common/utils/restcall.py
+++ b/share/common/utils/restcall.py
@@ -80,7 +80,7 @@ def _call_req(base_url, user, passwd, auth_type,
headers=headers)
resp_status, resp_body = \
resp['status'], codecs.decode(
- resp_content, 'UTF-8')
+ resp_content, 'UTF-8') if resp_content else None
if resp_status in status_ok_list:
ret = [0, resp_body, resp_status]
else: