Skip to content

Commit 257d939

Browse files
YthogthaWescoeur
authored andcommitted
fix(cleanup): properly handle FileSR exception for slave check (#123)
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 6b6bb98 commit 257d939

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,7 @@ def _checkSlaves(self, vdi):
30003000
raise AbortException("Aborting due to signal")
30013001
try:
30023002
self._checkSlave(hostRef, vdi)
3003-
except util.CommandException:
3003+
except XenAPI.Failure:
30043004
if hostRef in onlineHosts:
30053005
raise
30063006

0 commit comments

Comments
 (0)