From 5d6d617783a82672bd3b01ed03ff3423fa047f45 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 4 Oct 2023 14:25:35 +0200 Subject: [PATCH] XenServerBackup: ignore backups with inaccessible primary disk (#66) Signed-off-by: Yann Dirson --- product.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product.py b/product.py index 19a5b3ab..04c5ec81 100644 --- a/product.py +++ b/product.py @@ -546,6 +546,10 @@ def findXenSourceBackups(): logger.log("findXenSourceBackups: ignoring later platform: %s > %s" % (backup.version, THIS_PLATFORM_VERSION)) break + if not os.path.exists(backup.root_disk): + logger.error("findXenSourceBackups: PRIMARY_DISK=%r does not exist" % + (backup.root_disk,)) + break backups.append(backup) break except Exception as ex: