Skip to content

Commit

Permalink
Rename settings.MICKA_ACCEPTED_VERSIONS to settings.MICKA_ACCEPTED_VE…
Browse files Browse the repository at this point in the history
…RSION
  • Loading branch information
index-git committed Nov 2, 2021
1 parent 447043d commit 8171ca0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/layman_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
CSW_RECORD_URL = os.getenv('CSW_RECORD_URL', None)

# # tuples like (version, revision)
MICKA_ACCEPTED_VERSIONS = [
MICKA_ACCEPTED_VERSION = [
('2020.014', '2020-04-15.01'),
] if ':' not in os.getenv('MICKA_ACCEPTED_VERSION', '') else [
tuple(os.environ['MICKA_ACCEPTED_VERSION'].split(':'))
Expand Down
2 changes: 1 addition & 1 deletion src/wait_for_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def main():
version_match = re.search(MICKA_VERSION_RE, response)
assert (version_match and len(version_match.groups()) == 2), 'Unknown version of Micka!'
found_version = version_match.groups()
assert found_version in settings.MICKA_ACCEPTED_VERSIONS, f"Found Micka version {found_version}, but expecting one of {settings.MICKA_ACCEPTED_VERSIONS}. Please use one of expected version, e.g. by upgrading/downgrading Micka. Take special care about Micka's database."
assert found_version in settings.MICKA_ACCEPTED_VERSION, f"Found Micka version {found_version}, but expecting one of {settings.MICKA_ACCEPTED_VERSION}. Please use one of expected version, e.g. by upgrading/downgrading Micka. Take special care about Micka's database."
print(f"Found Micka version {found_version}.")

print(f"Attempt {attempt}/{MAX_ATTEMPTS} successful.")
Expand Down

0 comments on commit 8171ca0

Please sign in to comment.