Skip to content

Commit

Permalink
feat(cli): add 0.10 awareness to upgrade prompt (datahub-project#7273)
Browse files Browse the repository at this point in the history
  • Loading branch information
shirshanka authored and Eric Yomi committed Feb 8, 2023
1 parent 0908d14 commit 1e01819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metadata-ingestion/src/datahub/upgrade/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ def valid_client_version(version: Version) -> bool:


def valid_server_version(version: Version) -> bool:
"""Only version strings like 0.8.x or 0.9.x are valid. 0.1.x is not"""
"""Only version strings like 0.8.x, 0.9.x or 0.10.x are valid. 0.1.x is not"""
if version.is_prerelease or version.is_postrelease or version.is_devrelease:
return False

if version.major == 0 and version.minor in [8, 9]:
if version.major == 0 and version.minor in [8, 9, 10]:
return True

return False
Expand Down

0 comments on commit 1e01819

Please sign in to comment.