From c3cdf8c2384fa124c39ed2b38723a1659ab1f474 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Thu, 8 Mar 2012 16:06:15 -0800 Subject: Fixes os-volume/snapshot delete * includes test * fixes bug 929773 Change-Id: I4c37617dc9377e26c491fb42c3e3e60a58e2404f --- nova/api/openstack/compute/contrib/volumes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/volumes.py b/nova/api/openstack/compute/contrib/volumes.py index 6532753c5..51d4a49a9 100644 --- a/nova/api/openstack/compute/contrib/volumes.py +++ b/nova/api/openstack/compute/contrib/volumes.py @@ -481,7 +481,8 @@ class SnapshotController(object): LOG.audit(_("Delete snapshot with id: %s"), id, context=context) try: - self.volume_api.delete_snapshot(context, snapshot_id=id) + snapshot = self.volume_api.get_snapshot(context, id) + self.volume_api.delete_snapshot(context, snapshot) except exception.NotFound: return exc.HTTPNotFound() return webob.Response(status_int=202) -- cgit