atakanyenel opened a new issue, #67989:
URL: https://github.com/apache/airflow/issues/67989
### Airflow CTL Version
Latest stable version
### Airflow CTL Command
airflow dags trigger --conf '{"my-key": "my-value"}' --dag-id "my-dag"
### Keyring Backend / Version
keyrings.alt 5.0.2
### Auth Type
username:password
### What is the current behaviour?
I'm trying to trigger a DagRun from the CLI. I'm already logged in to
airflow with `airflow auth login --user etc.`
When I'm giving the dag parameters to CLI with `--conf`, the CLI rejects
them, saying that they can't be parsed. AI analysis tells me that the CLI tries
to parse the --conf flag directly as python dictionary without parsing the JSON
first. Here is the failing value for my case:
https://github.com/apache/airflow/blob/8cd923206d1ab439037a2e11352304f7b750720c/airflow-core/src/airflow/cli/cli_config.py#L1304
### What is the expected results?
The command should trigger a DAG run with the given json config.
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]