Content-Length: 266769 | pFad | http://github.com/nailo2c/airflow/commit/247009ffe6b7e5d365d218ad951be533654a662b

6F Update config endpoint to use the get interface (#50902) · nailo2c/airflow@247009f · GitHub
Skip to content

Commit 247009f

Browse files
pierrejeambrunnailo2c
authored andcommitted
Update config endpoint to use the get interface (apache#50902)
1 parent a7086f9 commit 247009f

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/nailo2c/airflow/commit/247009ffe6b7e5d365d218ad951be533654a662b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy