vm: remove noop try-except block
Showing
... | @@ -791,16 +791,12 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin, | ... | @@ -791,16 +791,12 @@ 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], | ||
Please
register
or
sign in
to reply
|
|||
args=[self.vm_name, disk.path, size], | queue=queue_name).get(timeout=timeout) | ||
queue=queue_name).get(timeout=timeout) | disk.size = size | ||
except: | disk.save() | ||
raise | |||
else: | |||
disk.size = size | |||
disk.save() | |||
def deploy_disks(self): | def deploy_disks(self): | ||
"""Deploy all associated disks. | """Deploy all associated disks. | ||
... | ... |