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 Oct 4, 2023
1 parent 7e929d0 commit 5d6d617
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 @@ -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:
Expand Down

0 comments on commit 5d6d617

Please sign in to comment.