API: remove unuseful expected error code from v2.1 service delete api

There isn't any BadRequest exception raise from this api method.
Remove it.

DOCImpact: service delete will not raise 400.
Closes-Bug: #1452522

Change-Id: Iad489926176aa5ebf4ab914f1ba6e4546e913fc5
This commit is contained in:
Eli Qiao 2015-05-07 09:51:30 +08:00
parent e8707aa3b5
commit bcb9769356
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class ServiceController(wsgi.Controller):
return svcs
@wsgi.response(204)
@extensions.expected_errors((400, 404))
@extensions.expected_errors(404)
def delete(self, req, id):
"""Deletes the specified service."""
context = req.environ['nova.context']