Skip to content

Commit

Permalink
XenServerBackup: ignore backups with inaccessible primary disk (xense…
Browse files Browse the repository at this point in the history
…rver#66)

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Jun 12, 2024
1 parent b270408 commit 44624db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions product.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,10 @@ def findXenSourceBackups():
logger.log("findXenSourceBackups: ignoring later platform: %s > %s" %
(backup.version, THIS_PLATFORM_VERSION))
raise StopIteration()
if not os.path.exists(backup.root_disk):
logger.error("findXenSourceBackups: PRIMARY_DISK=%r does not exist" %
(backup.root_disk,))
raise StopIteration()

backups.append(backup)

Expand Down

0 comments on commit 44624db

Please sign in to comment.