Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
d308a53c
Commit
d308a53c
authored
Jan 30, 2014
by
Christos Stavrakakis
Browse files
cyclades: Fix typo
Snapshot "uuid" has been replaced with "id" to match with images.
parent
bf40d735
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/volume/snapshots.py
View file @
d308a53c
...
...
@@ -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
[
"
uu
id"
])
pithos_backend
.
delete_snapshot
(
snapshot
[
"id"
])
return
snapshot
...
...
snf-cyclades-app/synnefo/volume/views.py
View file @
d308a53c
...
...
@@ -220,7 +220,7 @@ def snapshot_to_dict(snapshot, detail=True):
progress
=
"%s%%"
%
100
if
status
==
"ACTIVE"
else
0
data
=
{
"id"
:
snapshot
[
"
uu
id"
],
"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
[
"
uu
id"
])
"links"
:
util
.
snapshot_to_links
(
snapshot
[
"id"
])
}
return
data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment