This is an automated email from the ASF dual-hosted git repository.
shahar1 pushed a commit to branch airflow-ctl/v0-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/airflow-ctl/v0-1-test by this
push:
new 8072d6e186c [airflow-ctl/v0-1-test] Fix airflowctl list argument
parsing (#72454) (#76045)
8072d6e186c is described below
commit 8072d6e186c3c1f7ca9d23663f2053ebe5d7145a
Author: Shahar Epstein <[email protected]>
AuthorDate: Fri Oct 30 17:55:19 2026 +0200
[airflow-ctl/v0-1-test] Fix airflowctl list argument parsing (#72454)
(#76045)
(cherry picked from commit 093c1cacc72a550ebea62088b28f81ddb9ad2583)
Co-authored-by: auyua9 <[email protected]>
Co-authored-by: auyua9 <[email protected]>
---
airflow-ctl/src/airflowctl/ctl/cli_config.py | 2 +-
airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/airflow-ctl/src/airflowctl/ctl/cli_config.py
b/airflow-ctl/src/airflowctl/ctl/cli_config.py
index 3ef65bd08c4..7719e969cfd 100755
--- a/airflow-ctl/src/airflowctl/ctl/cli_config.py
+++ b/airflow-ctl/src/airflowctl/ctl/cli_config.py
@@ -589,7 +589,7 @@ class CommandFactory:
"bool": bool,
"str": str,
"bytes": bytes,
- "list": list,
+ "list": string_list_type,
"dict": json_dict_type,
"tuple": tuple,
"set": set,
diff --git a/airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py
b/airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py
index 9d8a56e73f4..999bd9305cf 100644
--- a/airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py
+++ b/airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py
@@ -351,6 +351,14 @@ class TestCommandFactory:
assert parsed_conf == {"my-key": "my-value"}
+ def test_command_factory_parses_comma_separated_list_fields(self):
+ """List fields should parse comma-separated CLI values as whole
items."""
+ command_factory = CommandFactory()
+
+ list_type = command_factory._python_type_from_string("list")
+
+ assert list_type("dag1, dag2") == ["dag1", "dag2"]
+
def test_json_dict_type_returns_dict_input_unchanged(self):
"""A dict input is returned as-is without re-parsing."""
value = {"my-key": "my-value"}