You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2021/04/15 12:07:44 UTC
[airflow] 25/36: Update import path and fix typo in `dag-run.rst`
(#15201)
This is an automated email from the ASF dual-hosted git repository.
ash pushed a commit to branch v2-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 863250d2965bcaaaf73a5e821f86a7332a5e8bda
Author: eladkal <45...@users.noreply.github.com>
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
^^^^^^^^^^