[
https://issues.apache.org/jira/browse/AIRFLOW-6076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17304058#comment-17304058
]
ASF subversion and git services commented on AIRFLOW-6076:
----------------------------------------------------------
Commit b24a1babd4271d74ba13b1dc0a9cf8da001b3f77 in airflow's branch
refs/heads/master from penggongkui
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=b24a1ba ]
[AIRFLOW-6076] fix dag.cli() KeyError (#13647)
> dag.cli() does not work properly
> --------------------------------
>
> Key: AIRFLOW-6076
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6076
> Project: Apache Airflow
> Issue Type: Bug
> Components: cli, DAG
> Affects Versions: 2.0.0
> Reporter: Tomasz Urbaszek
> Priority: Major
>
> Using DAG().cli() results in an error:
>
> Traceback (most recent call last):
> File "/Users/usr/xx/airflow/airflow/example_dags/example_bash_operator.py",
> line 75, in <module>
> dag.cli()
> File "/Users/usr/xx/airflow/airflow/models/dag.py", line 1290, in cli
> parser = cli.CLIFactory.get_parser(dag_parser=True)
> File "/Users/usr/xx/airflow/airflow/bin/cli.py", line 997, in get_parser
> sub = cls.subparsers_dict[sub]
> KeyError: 'backfill'
--
This message was sent by Atlassian Jira
(v8.3.4#803005)