aboutsummaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-11-20 15:19:46 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-11-20 15:19:57 +0800
commit458808ba470b4fba7acedb4e5f6dba8d6363cb0f (patch)
tree3a077bfaa0f6b33fa7ace5ac656ee4e2569b70aa /lcm
parent5b6dcb725c52fdcedeb1ebd681915ee0843cc6e0 (diff)
Add return value to ns terminate
Change-Id: I0b4367b4811252e732c124a04b67b325ce516afe Issue-ID: VFC-1578 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/ns/views/sol/terminate_ns_view.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/ns/views/sol/terminate_ns_view.py b/lcm/ns/views/sol/terminate_ns_view.py
index 51e087bb..0983b460 100644
--- a/lcm/ns/views/sol/terminate_ns_view.py
+++ b/lcm/ns/views/sol/terminate_ns_view.py
@@ -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