Commit 04f78c0d by Guba Sándor

Merge branch 'issue-344' into 'master'

Issue 344

See merge request !247
parents 8649c0c1 8ca8e716
...@@ -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