Skip to content

Commit 3e18aee

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 f67bd89 commit 3e18aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)