Revert "Don't return master as version"
This reverts commit 2d62e97e33.
This commit is contained in:
@ -237,10 +237,7 @@ def get_app_version():
|
||||
Returns the version either from the env var, or from the version file.
|
||||
"""
|
||||
version = get_env("SYNERGY_VERSION", required=False)
|
||||
|
||||
# TODO: Perhaps regex match the version string and if it's not a valid version,
|
||||
# log a warning and fall back to the VERSION file value.
|
||||
if version and version != "master":
|
||||
if version:
|
||||
return version
|
||||
|
||||
with open("VERSION", "r") as f:
|
||||
|
||||
Reference in New Issue
Block a user