Skip to content

Commit

Permalink
fix(LinstorSR): fix bad call to vhdutil.inflate + bad exception
Browse files Browse the repository at this point in the history
Signed-off-by: Ronan Abhamon <[email protected]>
  • Loading branch information
Wescoeur committed Feb 12, 2024
1 parent 72c6911 commit 5d5ec1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/LinstorSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ def resize(self, sr_uuid, vdi_uuid, size):
else:
if new_volume_size != old_volume_size:
self.sr._vhdutil.inflate(
self.sr._journaler, self._linstor, self.uuid, self.path,
self.sr._journaler, self.uuid, self.path,
new_volume_size, old_volume_size
)
self.sr._vhdutil.set_size_virt_fast(self.path, size)
Expand Down Expand Up @@ -2497,7 +2497,7 @@ def _snapshot(self, snap_type, cbtlog=None, cbt_consistency=None):
self.session.xenapi.VDI.set_sm_config(
vdi_ref, active_vdi.sm_config
)
except Exception as e:
except Exception:
util.logException('Failed to snapshot!')
try:
self.sr._handle_interrupted_clone(
Expand Down

0 comments on commit 5d5ec1d

Please sign in to comment.