Commit eb856394 by Czémán Arnold

vm, storage: some small fix

parent 4cbd33d4
Pipeline #184 passed with stage
in 0 seconds
......@@ -53,8 +53,8 @@ def snapshot_from_base(disk_desc):
pass
@celery.task(name='storagedriver.snapshot')
def snapshot(disk_desc, name):
@celery.task(name='storagedriver.create_snapshot')
def create_snapshot(disk_desc, name):
pass
......
......@@ -307,8 +307,8 @@ class CreateSnapshotDiskOperation(RemoteSnapshotDiskOperation):
name = _('create snapshot')
description = _('Create snapshot from disk.')
required_perms = ('storage.create_snapshot', )
accept_states = ('STOPPED')
task = storage_tasks.snapshot
accept_states = ('STOPPED', )
task = storage_tasks.create_snapshot
def _get_remote_args(self, **kwargs):
snap_name = kwargs.get('snap_name')
......@@ -351,7 +351,7 @@ class RevertSnapshotDiskOperation(RemoteSnapshotDiskOperation):
name = _('revert snapshot')
description = _('Revert snapshot on disk.')
required_perms = ('storage.revert_snapshot', )
accept_states = ('STOPPED')
accept_states = ('STOPPED', )
task = storage_tasks.revert_snapshot
def _get_remote_args(self, **kwargs):
......
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