Commit c5faf0c7 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix bug when deleting snapshot

PithosBackend has not yet a method for deleting an object by it's uuid.
Instead use the 'get_uuid' method to convert a uuid to it's account,
container and path information.
parent 3e880a3d
......@@ -456,7 +456,9 @@ class PlanktonBackend(object):
@handle_pithos_backend
def delete_snapshot(self, snapshot_uuid):
self.backend.delete_object_for_uuid(self.user, snapshot_uuid)
account, container, path = self.backend.get_uuid(self.user,
snapshot_uuid)
self.backend.delete_object(self.user, account, container, path)
@handle_pithos_backend
def update_status(self, image_uuid, status):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment