Commit eb856394 by Czémán Arnold

vm, storage: some small fix

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