diff --git a/slice2ns_mapper/mapper.py b/slice2ns_mapper/mapper.py index 31b72f5b..5c89bd5c 100644 --- a/slice2ns_mapper/mapper.py +++ b/slice2ns_mapper/mapper.py @@ -306,7 +306,7 @@ def net_serv_terminate(service_data): jsonresponse = json.loads(response.text) else: jsonresponse = {'http_code': response.status_code,'message': response.json()} - return jsonresponse + return jsonresponse, response.status_code # POST to call the Gk when a slice is READY (either instantiated or terminated) def sliceUpdated(slice_callback, json_slice_info): diff --git a/slice_lifecycle_mgr/nsi_manager.py b/slice_lifecycle_mgr/nsi_manager.py index 3acc88f0..54df8c8a 100644 --- a/slice_lifecycle_mgr/nsi_manager.py +++ b/slice_lifecycle_mgr/nsi_manager.py @@ -776,7 +776,7 @@ def send_termination_requests(self, nsr_item): # calls the function towards the GTK termination_response = mapper.net_serv_terminate(data) - return termination_response, 201 + return termination_response[0], termination_response[1] def update_nsi_notify_terminate(self): mutex_slice2db_access.acquire()