Commit a27aafa6 by Őry Máté

vm: remove noop try-except block

parent 5788a437
...@@ -791,14 +791,10 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin, ...@@ -791,14 +791,10 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
raise raise
def resize_disk_live(self, disk, size, timeout=15): def resize_disk_live(self, disk, size, timeout=15):
try:
queue_name = self.get_remote_queue_name('vm', 'slow') queue_name = self.get_remote_queue_name('vm', 'slow')
return vm_tasks.resize_disk.apply_async( return vm_tasks.resize_disk.apply_async(
args=[self.vm_name, disk.path, size], args=[self.vm_name, disk.path, size],
queue=queue_name).get(timeout=timeout) queue=queue_name).get(timeout=timeout)
except:
raise
else:
disk.size = size disk.size = size
disk.save() disk.save()
......
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