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

cyclades: Fix typo

Snapshot "uuid" has been replaced with "id" to match with images.
parent bf40d735
......@@ -122,7 +122,7 @@ def delete(snapshot):
user_id = snapshot["owner"]
log.info("Deleting snapshot '%s'", snapshot["location"])
with image_backend(user_id) as pithos_backend:
pithos_backend.delete_snapshot(snapshot["uuid"])
pithos_backend.delete_snapshot(snapshot["id"])
return snapshot
......
......@@ -220,7 +220,7 @@ def snapshot_to_dict(snapshot, detail=True):
progress = "%s%%" % 100 if status == "ACTIVE" else 0
data = {
"id": snapshot["uuid"],
"id": snapshot["id"],
"size": int(snapshot["size"]) >> 30, # gigabytes
"display_name": snapshot["name"],
"display_description": snapshot["description"],
......@@ -232,7 +232,7 @@ def snapshot_to_dict(snapshot, detail=True):
"created_at": utils.isoformat(date_parse(snapshot["created_at"])),
"metadata": snapshot.get("metadata", {}),
"volume_id": snapshot.get("volume_id"),
"links": util.snapshot_to_links(snapshot["uuid"])
"links": util.snapshot_to_links(snapshot["id"])
}
return data
......
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