Skip to content

Commit e093164

Browse files
WescoeurNambrok
authored andcommitted
fix(LinstorSR): fix bad exception reference during snapshot
Signed-off-by: Ronan Abhamon <[email protected]>
1 parent 5d16c65 commit e093164

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: drivers/LinstorSR.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2500,17 +2500,17 @@ def _snapshot(self, snap_type, cbtlog=None, cbt_consistency=None):
25002500
self.session.xenapi.VDI.set_sm_config(
25012501
vdi_ref, active_vdi.sm_config
25022502
)
2503-
except Exception:
2503+
except Exception as e:
25042504
util.logException('Failed to snapshot!')
25052505
try:
25062506
self.sr._handle_interrupted_clone(
25072507
active_uuid, clone_info, force_undo=True
25082508
)
25092509
self.sr._journaler.remove(LinstorJournaler.CLONE, active_uuid)
2510-
except Exception as e:
2510+
except Exception as clean_error:
25112511
util.SMlog(
25122512
'WARNING: Failed to clean up failed snapshot: {}'
2513-
.format(e)
2513+
.format(clean_error)
25142514
)
25152515
raise xs_errors.XenError('VDIClone', opterr=str(e))
25162516

0 commit comments

Comments
 (0)