diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-03-08 16:06:15 -0800 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-03-08 16:06:15 -0800 |
| commit | c3cdf8c2384fa124c39ed2b38723a1659ab1f474 (patch) | |
| tree | 2a6bc1819de37d151b59f42951627747b0db9801 /nova/api | |
| parent | 0b591886a6b6dff759832a6c1e940f6181e18175 (diff) | |
Fixes os-volume/snapshot delete
* includes test
* fixes bug 929773
Change-Id: I4c37617dc9377e26c491fb42c3e3e60a58e2404f
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/contrib/volumes.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
