|
@@ -35,7 +35,7 @@ def get_airflow_api_info():
|
|
|
'content-type': 'application/json',
|
|
|
'Authorization': f'basic {config.get("AIRFLOW", "api_token")}',
|
|
|
}
|
|
|
- host_in_header = config.get("AIRFLOW", "host_in_header", None)
|
|
|
+ host_in_header = config.get("AIRFLOW", "host_in_header", fallback=None)
|
|
|
if host_in_header not in ['', None]:
|
|
|
headers['Host'] = host_in_header
|
|
|
return uri_prefix, headers
|
|
@@ -47,7 +47,7 @@ def call_airflow_api(method, uri, args_dict):
|
|
|
'content-type': 'application/json',
|
|
|
'Authorization': f'basic {config.get("AIRFLOW", "api_token")}',
|
|
|
}
|
|
|
- host_in_header = config.get("AIRFLOW", "host_in_header", None)
|
|
|
+ host_in_header = config.get("AIRFLOW", "host_in_header", fallback=None)
|
|
|
if host_in_header not in ['', None]:
|
|
|
headers['Host'] = host_in_header
|
|
|
if method == 'post':
|