Don't return master as version
This commit is contained in:
parent
7132c5990b
commit
2d62e97e33
1 changed files with 4 additions and 1 deletions
|
|
@ -237,7 +237,10 @@ def get_app_version():
|
||||||
Returns the version either from the env var, or from the version file.
|
Returns the version either from the env var, or from the version file.
|
||||||
"""
|
"""
|
||||||
version = get_env("SYNERGY_VERSION", required=False)
|
version = get_env("SYNERGY_VERSION", required=False)
|
||||||
if version:
|
|
||||||
|
# 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":
|
||||||
return version
|
return version
|
||||||
|
|
||||||
with open("VERSION", "r") as f:
|
with open("VERSION", "r") as f:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue