Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1ccb2da4
authored
Sep 26, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding snapshot function
parent
c4589229
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
storagedriver.py
+8
-2
No files found.
storagedriver.py
View file @
1ccb2da4
...
...
@@ -20,6 +20,12 @@ def delete_disk(json_data):
@celery.task
()
def
get_disk
(
json_data
):
def
snapshot
(
json_data
):
disk
=
Disk
.
import_from_json
(
json_data
)
return
jsonpickle
.
encode
(
disk
,
unpicklable
=
False
)
disk
.
snapshot
()
@celery.task
()
def
get_disk
(
json_data
):
disk
=
Disk
.
get
(
dir
=
json_data
[
'dir'
],
name
=
json_data
[
'name'
])
return
disk
.
get_desc
()
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