Skip to content

Commit

Permalink
report satellite version on miss-match
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and ekohl committed Jun 29, 2023
1 parent d42c6d6 commit be5c00e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/satellite-clone/library/parse_backup_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def parse_backup_metadata(params):
satellite_version = os.getenv('SATELLITE_CLONE_FORCE_VERSION')

if not satellite_version or tuple(int(x) for x in satellite_version.split('.')) < MINIMUM_SUPPORTED_VERSION:
msg = "Satellite version is not supported or found. " \
"Only Satellite {0} or newer is supported.".format('.'.join(str(x) for x in MINIMUM_SUPPORTED_VERSION))
msg = "Satellite version {0} is not supported or found. " \
"Only Satellite {1} or newer is supported.".format(satellite_version, '.'.join(str(x) for x in MINIMUM_SUPPORTED_VERSION))
return False, dict(msg=msg)

msg = "{0} backup found".format(satellite_version)
Expand Down

0 comments on commit be5c00e

Please sign in to comment.