vm_manager.py 368 Bytes
Newer Older
Guba Sándor committed
1
from .mancelery import celery
Guba Sándor committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36


@celery.task
def deploy(instance, user):
    '''Create new virtual machine from VM class.
    '''
    instance.deploy(task_uuid=deploy.request.id, user=user)


def delete():
    pass


def save_as():
    pass


def suspend():
    pass


def resume():
    pass


def restart():
    pass


def reset():
    pass


def migrate():
    pass