fix bug for failure in creating subscriptions for vnfm 44/93144/3
authorhongyuzhao <zhao.hongyu@zte.com.cn>
Fri, 9 Aug 2019 03:43:35 +0000 (11:43 +0800)
committerhongyuzhao <zhao.hongyu@zte.com.cn>
Fri, 9 Aug 2019 06:01:58 +0000 (14:01 +0800)
Change-Id: I4fed40ffd985a6724a76cc0de86b20e95b5f6c72
Issue-ID: VFC-1484
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
gvnfmadapter/driver/interfaces/views.py

index b99dc10..db47884 100644 (file)
@@ -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={