Skip to content

Commit

Permalink
Default templated variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Jun 2, 2023
1 parent 20de16d commit 502a387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion catalog/dags/common/ingestion_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ def api_health_check(
http_conn_id=API_CONN_ID,
endpoint=f"{media_type}",
request_params={"internal__index": f"{media_type}-{index_suffix}"},
headers={"Authorization": "Bearer {{ var.value.API_ACCESS_TOKEN }}"},
headers={
"Authorization": "Bearer {{ var.value.get('API_ACCESS_TOKEN', 'not_set') }}"
},
method="GET",
response_check=response_check_api_health_check,
mode="reschedule",
Expand Down

0 comments on commit 502a387

Please sign in to comment.