You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2022/04/04 21:00:09 UTC

[airflow] branch main updated: Docs: Fix example usage for `AzureCosmosDocumentSensor` (#22735)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new d3976d9b20 Docs: Fix example usage for `AzureCosmosDocumentSensor` (#22735)
d3976d9b20 is described below

commit d3976d9b20163550dbfe8cf9b326260516fd9bb8
Author: Kaxil Naik <ka...@apache.org>
AuthorDate: Mon Apr 4 21:59:58 2022 +0100

    Docs: Fix example usage for `AzureCosmosDocumentSensor` (#22735)
---
 airflow/providers/microsoft/azure/sensors/cosmos.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/airflow/providers/microsoft/azure/sensors/cosmos.py b/airflow/providers/microsoft/azure/sensors/cosmos.py
index 98c67193d7..295aa6d111 100644
--- a/airflow/providers/microsoft/azure/sensors/cosmos.py
+++ b/airflow/providers/microsoft/azure/sensors/cosmos.py
@@ -31,12 +31,13 @@ class AzureCosmosDocumentSensor(BaseSensorOperator):
 
     .. code-block::
 
-    azure_cosmos_sensor = AzureCosmosDocumentSensor(
-        database_name="somedatabase_name",
-        collection_name="somecollection_name",
-        document_id="unique-doc-id",
-        azure_cosmos_conn_id="azure_cosmos_default",
-        task_id="azure_cosmos_sensor")
+        azure_cosmos_sensor = AzureCosmosDocumentSensor(
+            database_name="somedatabase_name",
+            collection_name="somecollection_name",
+            document_id="unique-doc-id",
+            azure_cosmos_conn_id="azure_cosmos_default",
+            task_id="azure_cosmos_sensor",
+        )
 
     :param database_name: Target CosmosDB database_name.
     :param collection_name: Target CosmosDB collection_name.