This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch v2-0-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit ce0ca248a9279f308e2961ca419ae6555640013b Author: eladkal <[email protected]> AuthorDate: Mon Apr 5 14:46:58 2021 +0300 Update import path and fix typo in `dag-run.rst` (#15201) 1. fix typo parametrized -> parameterized 2. update `from airflow.operators.bash_operator import BashOperator` -> `from airflow.operators.bash import BashOperator` (cherry picked from commit 4099108f554130cf3f87ba33b9d6084a74e70231) --- docs/apache-airflow/dag-run.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/apache-airflow/dag-run.rst b/docs/apache-airflow/dag-run.rst index 72204f1..dbcf68a 100644 --- a/docs/apache-airflow/dag-run.rst +++ b/docs/apache-airflow/dag-run.rst @@ -208,10 +208,10 @@ Example of a parameterized DAG: .. code-block:: python from airflow import DAG - from airflow.operators.bash_operator import BashOperator + from airflow.operators.bash import BashOperator from airflow.utils.dates import days_ago - dag = DAG("example_parametrized_dag", schedule_interval=None, start_date=days_ago(2)) + dag = DAG("example_parameterized_dag", schedule_interval=None, start_date=days_ago(2)) parameterized_task = BashOperator( task_id='parameterized_task', @@ -227,7 +227,7 @@ Using CLI .. code-block:: bash - airflow dags trigger --conf '{"conf1": "value1"}' example_parametrized_dag + airflow dags trigger --conf '{"conf1": "value1"}' example_parameterized_dag Using UI ^^^^^^^^^^
