Commit 5ff4625d by Guba Sándor

vm/operations: fixing names and queue_names

parent 64e0a1f0
......@@ -216,11 +216,12 @@ class ResizeDiskOperation(InstanceOperation):
description = _("Resize the virtual disk image. "
"Size must be greater value than the actual size.")
required_perms = ('vm.resize_disk', )
accept_states = ('RUNNING')
accept_states = ('RUNNING', )
async_queue = "localhost.man.slow"
def _operation(self, user, disk, size, activity):
if self.instance.is_running:
self.instance.resize_disk(disk, size)
self.instance.resize_disk_live(disk, size)
def get_activity_name(self, kwargs):
return create_readable(
......
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