Skip to content

Commit

Permalink
XenServerBackup: ignore backups with inaccessible primary disk (#66)
Browse files Browse the repository at this point in the history
Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Oct 6, 2023
1 parent c3f126e commit 7a99335
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 7a99335

Please sign in to comment.