summaryrefslogtreecommitdiffstats
path: root/share/newton_base/registration/registration.py
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-09-04 03:38:39 +0000
committerBin Yang <bin.yang@windriver.com>2018-09-04 03:38:39 +0000
commit3c97c8a2826f7c1fb16be98b32761e09e2ae0e4b (patch)
treea73e1bfb9529527bc111aea43b24cf428d21bcac /share/newton_base/registration/registration.py
parent666db995112ea06f1648c1e6c61631b9f551e19d (diff)
Fix return code error
Change-Id: I9b8ba9bb19d05328ec7c57015a7e3c950d683d9c Issue-ID: MULTICLOUD-265 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'share/newton_base/registration/registration.py')
-rw-r--r--share/newton_base/registration/registration.py2
1 files changed, 1 insertions, 1 deletions
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: