From 3c97c8a2826f7c1fb16be98b32761e09e2ae0e4b Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Tue, 4 Sep 2018 03:38:39 +0000 Subject: Fix return code error Change-Id: I9b8ba9bb19d05328ec7c57015a7e3c950d683d9c Issue-ID: MULTICLOUD-265 Signed-off-by: Bin Yang --- share/newton_base/registration/registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/newton_base/registration/registration.py b/share/newton_base/registration/registration.py index 47f58511..46447c07 100644 --- a/share/newton_base/registration/registration.py +++ b/share/newton_base/registration/registration.py @@ -1099,7 +1099,7 @@ class Registry(APIView): restcall.req_to_aai(resource_url, "DELETE") #ret_code = VimDriverUtils.delete_vim_info(vimid) - return Response(status=status.HTTP_202_ACCEPTED if retcode==0 else status.HTTP_500_INTERNAL_SERVER_ERROR) + return Response(status=status.HTTP_204_NO_CONTENT if retcode==0 else status.HTTP_500_INTERNAL_SERVER_ERROR) except VimDriverNewtonException as e: return Response(data={'error': e.content}, status=e.status_code) except HttpError as e: -- cgit 1.2.3-korg