Skip to content

Commit e6ff1af

Browse files
committed
fix(cleanup): properly handle FileSR exception for slave check
A plugin is used by the `_checkSlave` helper. Therefore, `call_plugin` is executed instead of a command helper, which means that `CommandException` cannot be raised. Signed-off-by: Arnaud Garcia-Fernandez <arnaud.garcia-fernandez@vates.tech>
1 parent 6950a5e commit e6ff1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/sm/cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2598,7 +2598,7 @@ def _checkSlaves(self, vdi):
25982598
raise AbortException("Aborting due to signal")
25992599
try:
26002600
self._checkSlave(hostRef, vdi)
2601-
except util.CommandException:
2601+
except XenAPI.Failure:
26022602
if hostRef in onlineHosts:
26032603
raise
26042604

0 commit comments

Comments
 (0)