summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf/views/curd_vnf_views.py
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-03 14:49:30 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-03 14:56:44 +0800
commit493ef37c5865cf551644b9cadb3ee01dbf181ae0 (patch)
treebe3cac37517be8be2798af9ab9274c5153fa9460 /lcm/lcm/nf/views/curd_vnf_views.py
parent963ef90e1a289a541524b7eb218531bfc982562e (diff)
Add logic for upd vnf
Change-Id: Ide1d75e1bdad76fac160e34195e3a5f23a888397 Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm/lcm/nf/views/curd_vnf_views.py')
-rw-r--r--lcm/lcm/nf/views/curd_vnf_views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/lcm/nf/views/curd_vnf_views.py b/lcm/lcm/nf/views/curd_vnf_views.py
index ea5d4289..abd6c62c 100644
--- a/lcm/lcm/nf/views/curd_vnf_views.py
+++ b/lcm/lcm/nf/views/curd_vnf_views.py
@@ -175,6 +175,8 @@ class DeleteVnfAndQueryVnf(APIView):
logger.error(e.message)
logger.error('Update VNF instance[%s] failed' % instanceid)
return Response(data={'error': '%s' % e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
+ except NFLCMExceptionNotFound as e:
+ return Response(data={'error': '%s' % e.message}, status=status.HTTP_404_NOT_FOUND)
except Exception as e:
logger.error(e.message)
logger.error(traceback.format_exc())