diff options
author | yangyan <yangyanyj@chinamobile.com> | 2018-05-16 18:43:35 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2018-05-17 08:56:02 +0800 |
commit | b37fe1de5b2a72c6b587519ea39872bcb8d6601a (patch) | |
tree | 9bf27e09dc1c4bfc18ae5c474875005555ce8803 | |
parent | 5236bd868ab8e9a9d4052eb9325fbbcad29e5eb5 (diff) |
Fix ns instantiate request bug
Issue-ID: VFC-912
Change-Id: Ibd4afa7b4af6f7d43ca62f758c61fcb7a7969ed2
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r-- | lcm/ns/views.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lcm/ns/views.py b/lcm/ns/views.py index 413a89a6..11e37181 100644 --- a/lcm/ns/views.py +++ b/lcm/ns/views.py @@ -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(): |