Commit 623d1db1 by Guba Sándor

storagedriver: added 2 level async status response

parent a0b8ade5
...@@ -21,8 +21,9 @@ class download(AbortableTask): ...@@ -21,8 +21,9 @@ class download(AbortableTask):
def run(self, **kwargs): def run(self, **kwargs):
disk_desc = kwargs['disk'] disk_desc = kwargs['disk']
url = kwargs['url'] url = kwargs['url']
parent_id = kwargs.get("parent_id", None)
disk = Disk.deserialize(disk_desc) disk = Disk.deserialize(disk_desc)
disk.download(self, url) disk.download(self, url, parent_id)
return disk.size return disk.size
......
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 sign in to comment