liamkernan commented on issue #61490: URL: https://github.com/apache/airflow/issues/61490#issuecomment-3861929896
Hi, I'd like to work on this issue. The problem is in `load_variables()` in `airflow-core/src/airflow/secrets/local_filesystem.py`. The function uses `isinstance(values, list)` to check for duplicate keys, but this check was designed for `.env` files where the parser wraps values in lists when a key appears multiple times. For JSON and YAML files, list values are legitimate variable values — not indicators of duplicate keys. I'll submit a PR shortly that fixes this by only applying the duplicate-key check for `.env` files, and passing through JSON/YAML values as-is. -- 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]
