Commit 2decaa68 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Set snapshot as default mode

parent 87c54f87
......@@ -141,7 +141,7 @@ def get_base_version(vcs_info):
def build_mode():
"""Determine the build mode from the value of $DEVFLOW_BUILD_MODE"""
try:
mode = os.environ["DEVFLOW_BUILD_MODE"]
mode = os.environ.get("DEVFLOW_BUILD_MODE", "snapshot")
assert mode == "release" or mode == "snapshot"
except KeyError:
raise ValueError("DEVFLOW_BUILD_MODE environment variable is not set."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment