Commit 85f1f63a by Dudás Ádám

storage: fix deploy parameters

parent ec9df20c
......@@ -124,7 +124,7 @@ class Disk(TimeStampedModel):
self.size = self.base.size
super(Disk, self).clean(*args, **kwargs)
def deploy(self):
def deploy(self, user=None, task_uuid=None):
"""Reify the disk model on the associated data store.
:param self: the disk model to reify
......@@ -159,10 +159,11 @@ class Disk(TimeStampedModel):
return True
def deploy_async(self):
def deploy_async(self, user=None):
"""Execute deploy asynchronously.
local_tasks.deploy.apply_async(args=[self, user],
def delete(self):
......@@ -3,9 +3,7 @@ from manager.mancelery import celery
def deploy(disk, user):
'''Create new virtual machine from VM class.
disk.deploy(task_uuid=deploy.rdiskd, user=user)
disk.deploy(, user=user)
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