Skip to content

Commit ea56c8c

Browse files
NambrokWescoeur
authored andcommitted
fix(LinstorSR): Correctly reference a variable exception (#91)
This bug is minor but it makes it difficult to understand why snapshots fail since the initial trace is lost due to the exception caused by the reference to the non-existing variable "e". Signed-off-by: Damien Thenot <[email protected]>
1 parent 2676c10 commit ea56c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/LinstorSR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2514,7 +2514,7 @@ def _snapshot(self, snap_type, cbtlog=None, cbt_consistency=None):
25142514
self.session.xenapi.VDI.set_sm_config(
25152515
vdi_ref, active_vdi.sm_config
25162516
)
2517-
except Exception:
2517+
except Exception as e:
25182518
util.logException('Failed to snapshot!')
25192519
try:
25202520
self.sr._handle_interrupted_clone(

0 commit comments

Comments
 (0)