Skip to content

Configuration parameter dag_bundle_config_list is generated without indentation #57355

@zachliu

Description

@zachliu

Apache Airflow version

main (development)

If "Other Airflow 2/3 version" selected, which one?

No response

What happened?

I've been using airflow config list --include-descriptions --include-examples to generate new configurations. but i noticed the indentations were removed from the dag_bundle_config_list. I have to add them back manually to avoid a configparser.ParsingError error.

Image

What you think should happen instead?

Either we include the indentation or make the configparser accept the parameter without indentation. My guess is that the former should be much easier.

How to reproduce

Use the cli airflow config list --include-descriptions --include-examples to generate a new set of configuration parameters.

Operating System

LM 21.3 with docker python:3.12-slim-bookworm

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions