Skip to content

Commit

Permalink
HH-103944 opportunity to override config with development settings
Browse files Browse the repository at this point in the history
  • Loading branch information
a-pertsev committed Oct 1, 2020
1 parent 6416d89 commit 456872f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion airflow/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,12 @@ def get_airflow_test_config(airflow_home):

conf = AirflowConfigParser(default_config=parameterized_config(DEFAULT_CONFIG))

conf.read(AIRFLOW_CONFIG)
configs = [AIRFLOW_CONFIG]

if 'AIRFLOW_DEV_CONF' in os.environ:
configs.append(os.environ['AIRFLOW_DEV_CONF'])

conf.read(configs)

if conf.has_option('core', 'AIRFLOW_HOME'):
msg = (
Expand Down

0 comments on commit 456872f

Please sign in to comment.