Commit 8ca8e716 by Guba Sándor

operation: on success change size in database as well

parent d4c7fdc3
...@@ -264,6 +264,11 @@ class ResizeDiskOperation(RemoteInstanceOperation): ...@@ -264,6 +264,11 @@ class ResizeDiskOperation(RemoteInstanceOperation):
ugettext_noop("resize disk %(name)s to %(size)s"), ugettext_noop("resize disk %(name)s to %(size)s"),
size=filesizeformat(kwargs['size']), name=kwargs['disk'].name) size=filesizeformat(kwargs['size']), name=kwargs['disk'].name)
def _operation(self, disk, size):
super(ResizeDiskOperation, self)._operation(disk=disk, size=size)
disk.size = size
disk.save()
@register_operation @register_operation
class DownloadDiskOperation(InstanceOperation): class DownloadDiskOperation(InstanceOperation):
......
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