summaryrefslogtreecommitdiff
path: root/cinder/api/v3/messages.py
diff options
context:
space:
mode:
Diffstat (limited to 'cinder/api/v3/messages.py')
-rw-r--r--cinder/api/v3/messages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cinder/api/v3/messages.py b/cinder/api/v3/messages.py
index 45986d53c..b71f70ca5 100644
--- a/cinder/api/v3/messages.py
+++ b/cinder/api/v3/messages.py
@@ -70,7 +70,7 @@ class MessagesController(wsgi.Controller):
# Not found exception will be handled at the wsgi level
message = self.message_api.get(context, id)
context.authorize(policy.DELETE_POLICY, target_obj=message)
- self.message_api.delete(context, message)
+ self.message_api.delete(context, id)
return webob.Response(status_int=HTTPStatus.NO_CONTENT)