Commit 836c7e0e by Dudás Ádám

vm: move deploy_async func next to deploy func

parent 6172a2f6
...@@ -550,6 +550,12 @@ class Instance(BaseResourceConfigModel, TimeStampedModel): ...@@ -550,6 +550,12 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
act.finish(result='SUCCESS') act.finish(result='SUCCESS')
def deploy_async(self, user=None):
"""Execute deploy asynchronously.
"""
local_tasks.deploy.apply_async(args=[self, user],
queue="localhost.man")
def destroy(self, user=None, task_uuid=None): def destroy(self, user=None, task_uuid=None):
"""Remove virtual machine and its networks. """Remove virtual machine and its networks.
...@@ -584,12 +590,6 @@ class Instance(BaseResourceConfigModel, TimeStampedModel): ...@@ -584,12 +590,6 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
local_tasks.destroy.apply_async(args=[self, user], local_tasks.destroy.apply_async(args=[self, user],
queue="localhost.man") queue="localhost.man")
def deploy_async(self, user=None):
"""Execute deploy() asynchronously.
"""
local_tasks.deploy.apply_async(args=[self, user],
queue="localhost.man")
def sleep(self, user=None, task_uuid=None): def sleep(self, user=None, task_uuid=None):
"""Suspend virtual machine with memory dump. """Suspend virtual machine with memory dump.
""" """
......
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