Fix ns instantiate request bug 93/47793/4
authoryangyan <yangyanyj@chinamobile.com>
Wed, 16 May 2018 10:43:35 +0000 (18:43 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Thu, 17 May 2018 00:56:02 +0000 (08:56 +0800)
Issue-ID: VFC-912
Change-Id: Ibd4afa7b4af6f7d43ca62f758c61fcb7a7969ed2
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
lcm/ns/views.py

index 413a89a..11e3718 100644 (file)
@@ -114,10 +114,10 @@ class NSInstView(APIView):
     )
     def post(self, request, ns_instance_id):
         logger.debug("Enter NSInstView::post::ns_instance_id=%s", ns_instance_id)
-        req_serializer = InstantNsReqSerializer(data=request.data)
-        if not req_serializer.is_valid():
-            return Response({'error': req_serializer.errors},
-                            status=status.HTTP_500_INTERNAL_SERVER_ERROR)
+        req_serializer = InstantNsReqSerializer(data=request.data)
+        if not req_serializer.is_valid():
+        # return Response({'error': req_serializer.errors},
+        # status=status.HTTP_500_INTERNAL_SERVER_ERROR)
         ack = InstantNSService(ns_instance_id, request.data).do_biz()
         resp_serializer = NsOperateJobSerializer(data=ack['data'])
         if not resp_serializer.is_valid():