Content-Length: 271134 | pFad | http://github.com/apache/airflow/commit/0486e6e5a344384d9e98dc60c4e7f19b584c3b40

DB Update config endpoint to use the get interface (#50902) · apache/airflow@0486e6e · GitHub
Skip to content

Commit 0486e6e

Browse files
Update config endpoint to use the get interface (#50902)
1 parent e52e8ac commit 0486e6e

File tree

1 file changed

+2
-4
lines changed
  • airflow-core/src/airflow/api_fastapi/core_api/routes/ui

1 file changed

+2
-4
lines changed

airflow-core/src/airflow/api_fastapi/core_api/routes/ui/config.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@
5050
)
5151
def get_configs() -> ConfigResponse:
5252
"""Get configs for UI."""
53-
conf_dict = conf.as_dict()
53+
config = {key: conf.get("webserver", key) for key in WEBSERVER_CONFIG_KEYS}
5454

55-
config = {key: conf_dict["webserver"].get(key) for key in WEBSERVER_CONFIG_KEYS}
56-
57-
config.update({key: conf_dict["api"].get(key) for key in API_CONFIG_KEYS})
55+
config.update({key: conf.get("api", key) for key in API_CONFIG_KEYS})
5856

5957
task_log_reader = TaskLogReader()
6058
additional_config: dict[str, Any] = {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/airflow/commit/0486e6e5a344384d9e98dc60c4e7f19b584c3b40

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy