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 5, 2023
1 parent 9bd7f53 commit 6a9b16c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions product.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ def findXenSourceBackups():
elif backup.version > THIS_PLATFORM_VERSION:
logger.log("findXenSourceBackups: ignoring later platform: %s > %s" %
(backup.version, THIS_PLATFORM_VERSION))
elif not os.path.exists(backup.root_disk):
logger.error("findXenSourceBackups: PRIMARY_DISK=%r does not exist" %
(backup.root_disk,))
else:
backups.append(backup)
except Exception as ex:
Expand Down

0 comments on commit 6a9b16c

Please sign in to comment.