Skip to content

Commit

Permalink
Change MongoHook.conn_name_attr to mongo_conn_id (#37104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taragolis authored Jan 31, 2024
1 parent fa29ddb commit c3c1fce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions airflow/providers/mongo/hooks/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@

class MongoHook(BaseHook):
"""
Interact with Mongo. This hook uses the Mongo conn_id.
PyMongo wrapper to interact with MongoDB.
PyMongo Wrapper to Interact With Mongo Database
Mongo Connection Documentation
https://docs.mongodb.com/manual/reference/connection-string/index.html
You can specify connection string options in extra field of your connection
Expand All @@ -54,7 +53,7 @@ class MongoHook(BaseHook):
when connecting to MongoDB.
"""

conn_name_attr = "conn_id"
conn_name_attr = "mongo_conn_id"
default_conn_name = "mongo_default"
conn_type = "mongo"
hook_name = "MongoDB"
Expand Down

0 comments on commit c3c1fce

Please sign in to comment.