diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-11-20 15:19:46 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-11-20 15:19:57 +0800 |
commit | 458808ba470b4fba7acedb4e5f6dba8d6363cb0f (patch) | |
tree | 3a077bfaa0f6b33fa7ace5ac656ee4e2569b70aa | |
parent | 5b6dcb725c52fdcedeb1ebd681915ee0843cc6e0 (diff) |
Add return value to ns terminate
Change-Id: I0b4367b4811252e732c124a04b67b325ce516afe
Issue-ID: VFC-1578
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r-- | lcm/ns/views/sol/terminate_ns_view.py | 2 |
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 |