File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131)
3232
3333REQUIRED_DB_ENV_VARS : dict [str , str ] = {
34- "db_host" : "DB_HOSTNAME " ,
35- "db_name" : "DB_NAME " ,
36- "db_password" : "DB_PASSWORD " ,
37- "db_user" : "DB_USER " ,
34+ "db_host" : "FIRE_DB_HOSTNAME " ,
35+ "db_name" : "FIRE_DB_NAME " ,
36+ "db_password" : "FIRE_DB_PASSWORD " ,
37+ "db_user" : "FIRE_DB_USERNAME " ,
3838 "db_port" : "DB_PORT" ,
3939}
4040
@@ -223,21 +223,14 @@ def build_runtime_config(
223223 merged [key ] = value
224224
225225 for config_key , env_var in REQUIRED_DB_ENV_VARS .items ():
226- if config_key in merged and merged [config_key ]:
227- continue
228- env_value = os .environ .get (env_var )
229- if env_value is None :
230- raise RuntimeError (
231- f"Environment variable '{ env_var } ' must be set to supply '{ config_key } '."
232- )
233- merged [config_key ] = env_value
226+ merged [config_key ] = os .environ .get (env_var , "" )
234227
235228 return RuntimeConfig .from_dict (merged )
236229
237230
238231def get_default_runtime_config () -> RuntimeConfig :
239232 """
240- Lazily build the default runtime configuration (requires DB env vars) .
233+ Lazily build the default runtime configuration using DB values from env vars.
241234 """
242235 global DEFAULT_RUNTIME_CONFIG
243236 if DEFAULT_RUNTIME_CONFIG is None :
You can’t perform that action at this time.
0 commit comments