Skip to content

Commit

Permalink
Merge pull request #285 from rvilalta/master
Browse files Browse the repository at this point in the history
Solving wrong return to have two parameteres: object and status
  • Loading branch information
alemanyp authored Dec 10, 2019
2 parents 7e2758c + 34228ab commit f223014
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion slice2ns_mapper/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion slice_lifecycle_mgr/nsi_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f223014

Please sign in to comment.