diff options
author | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-08-09 11:43:35 +0800 |
---|---|---|
committer | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-08-09 14:01:58 +0800 |
commit | 14bb3cddc9b722f1046bf431991277c0d3ed193f (patch) | |
tree | a8facfbaf5bae9a6702cf64c769414f821f1c01a /gvnfmadapter | |
parent | 83ad582837ffa80994eaae806de0ea9a7b6ad46c (diff) |
fix bug for failure in creating subscriptions for vnfm
Change-Id: I4fed40ffd985a6724a76cc0de86b20e95b5f6c72
Issue-ID: VFC-1484
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Diffstat (limited to 'gvnfmadapter')
-rw-r--r-- | gvnfmadapter/driver/interfaces/views.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gvnfmadapter/driver/interfaces/views.py b/gvnfmadapter/driver/interfaces/views.py index b99dc10..db47884 100644 --- a/gvnfmadapter/driver/interfaces/views.py +++ b/gvnfmadapter/driver/interfaces/views.py @@ -281,6 +281,14 @@ class VnfGrantInfo(APIView): class VnfNotifyInfo(APIView): + def get(self, request, vnfmtype): + try: + logger.debug("[%s]receive request.", fun_name()) + return Response(status=status.HTTP_204_NO_CONTENT) + except: + logger.error(traceback.format_exc()) + return Response(data={'error': 'unexpected exception'}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) + @swagger_auto_schema( request_body=VnfNotifyReqSerializer(), responses={ |