Add return value to ns terminate 44/98644/1
authoryangyan <yangyanyj@chinamobile.com>
Wed, 20 Nov 2019 07:19:46 +0000 (15:19 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Wed, 20 Nov 2019 07:19:57 +0000 (15:19 +0800)
Change-Id: I0b4367b4811252e732c124a04b67b325ce516afe
Issue-ID: VFC-1578
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
lcm/ns/views/sol/terminate_ns_view.py

index 51e087b..0983b46 100644 (file)
@@ -55,7 +55,7 @@ class TerminateNsView(APIView):
         terminate_ns_service = TerminateNsService(ns_instance_id, job_id, request.data)
         terminate_ns_service.start()
         logger.debug("Location: %s" % terminate_ns_service.occ_id)
-        response = Response(data={}, status=status.HTTP_202_ACCEPTED)
+        response = Response(data={'jobId': job_id}, status=status.HTTP_202_ACCEPTED)
         response["Location"] = NS_OCC_BASE_URI % terminate_ns_service.occ_id
         logger.debug("Leave TerminateNSView")
         return response