summaryrefslogtreecommitdiffstats
path: root/gvnfmadapter
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-11-24 11:11:48 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-11-24 11:11:48 +0800
commita7af78a87739dd68e22323e992e8761bf7df4953 (patch)
tree5eab9b617d0d61c75ef2013e152d71fbf4ec703b /gvnfmadapter
parent3dddddf3d296d6f1680b6fd50fd6d255ecc4baab (diff)
Fix vnf notify resp parse
Change-Id: I933835d9f0cec05c5382d563f10595dbecb0e3aa Issue-ID: VFC-1163 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'gvnfmadapter')
-rw-r--r--gvnfmadapter/driver/interfaces/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gvnfmadapter/driver/interfaces/views.py b/gvnfmadapter/driver/interfaces/views.py
index d8185ec..71ec408 100644
--- a/gvnfmadapter/driver/interfaces/views.py
+++ b/gvnfmadapter/driver/interfaces/views.py
@@ -623,7 +623,7 @@ def do_lcmVnf(vnfm_id, vnfInstanceId, data, lcmType):
if ret[0] != 0 and int(ret[2]) != status.HTTP_404_NOT_FOUND and int(ret[2]) != status.HTTP_409_CONFLICT:
logger.error("Status code is %s, detail is %s.", ret[2], ret[1])
raise GvnfmDriverException('Failed to Operate vnf.')
- return (ret[2], json.JSONDecoder().decode(ret[1]), ret[3])
+ return (ret[2], json.JSONDecoder().decode(ret[1]) if ret[1] else {}, ret[3])
def do_queryvnf(data, vnfm_id, vnfInstanceId):