From 0c40f8947716932fa8b67acc19b3567837eebedc Mon Sep 17 00:00:00 2001 From: Xiaohua Zhang Date: Wed, 19 Sep 2018 03:12:51 +0000 Subject: Implement infra_workload delete API Change-Id: I16f198e44810278eafb5be08ed88268911554f57 Issue-ID: MULTICLOUD-358 Signed-off-by: Xiaohua Zhang --- share/common/utils/restcall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/common/utils') 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: -- cgit 1.2.3-korg