diff --git a/nova/api/openstack/compute/schemas/servers.py b/nova/api/openstack/compute/schemas/servers.py index 1275230d5b..305d322364 100644 --- a/nova/api/openstack/compute/schemas/servers.py +++ b/nova/api/openstack/compute/schemas/servers.py @@ -1771,6 +1771,8 @@ revert_resize_response = {'type': 'null'} reboot_response = {'type': 'null'} +delete_response = {'type': 'null'} + start_server_response = {'type': 'null'} stop_server_response = {'type': 'null'} diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py index fc628c48e2..96f2a551d4 100644 --- a/nova/api/openstack/compute/servers.py +++ b/nova/api/openstack/compute/servers.py @@ -89,6 +89,7 @@ INVALID_FLAVOR_IMAGE_EXCEPTIONS = ( ) +@validation.validated class ServersController(wsgi.Controller): """The Server API base controller class for the OpenStack API.""" @@ -1143,6 +1144,7 @@ class ServersController(wsgi.Controller): @wsgi.response(204) @wsgi.expected_errors((404, 409)) + @validation.response_body_schema(schema.delete_response) def delete(self, req, id): """Destroys a server.""" try: