From e6ff1af96de13b83a1bae1f25f3387ba0d684e66 Mon Sep 17 00:00:00 2001 From: Arnaud Garcia-Fernandez Date: Fri, 13 Feb 2026 09:47:37 +0100 Subject: [PATCH] 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 --- libs/sm/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sm/cleanup.py b/libs/sm/cleanup.py index e75f0999f..963e435e0 100644 --- a/libs/sm/cleanup.py +++ b/libs/sm/cleanup.py @@ -2598,7 +2598,7 @@ def _checkSlaves(self, vdi): raise AbortException("Aborting due to signal") try: self._checkSlave(hostRef, vdi) - except util.CommandException: + except XenAPI.Failure: if hostRef in onlineHosts: raise