This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new 846a1dd24aa [v3-0-test] Fix whitespace handling in DAG owners parsing
for multiple owners (#52216) (#52221)
846a1dd24aa is described below
commit 846a1dd24aa8a0c2629a7857bb015fed438b4abe
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Jun 25 11:01:34 2025 +0200
[v3-0-test] Fix whitespace handling in DAG owners parsing for multiple
owners (#52216) (#52221)
(cherry picked from commit b1be38353651d111e3623eb91eb92a507d5e04dc)
Co-authored-by: Yeonguk Choo <[email protected]>
---
airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py
b/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py
index c8db6825a57..e461f9c62a6 100644
--- a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py
+++ b/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py
@@ -91,7 +91,7 @@ class DAGResponse(BaseModel):
if v is None:
return []
if isinstance(v, str):
- return v.split(",")
+ return [x.strip() for x in v.split(",")]
return v
@field_validator("timetable_summary", mode="before")