We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 282e916 commit 5affdb3Copy full SHA for 5affdb3
st2common/st2common/models/db/__init__.py
@@ -199,8 +199,9 @@ def _db_connect(
199
# successfully established.
200
# See http://api.mongodb.com/python/current/api/pymongo/mongo_client.html for details
201
try:
202
- # The ismaster command is cheap and does not require auth
203
- connection.admin.command("ismaster")
+ # The hello command is cheap and does not require auth
+ # https://docs.mongodb.com/v4.4/reference/command/hello/
204
+ connection.admin.command("hello")
205
except (ConnectionFailure, ServerSelectionTimeoutError) as e:
206
# NOTE: ServerSelectionTimeoutError can also be thrown if SSLHandShake fails in the server
207
# Sadly the client doesn't include more information about the error so in such scenarios
0 commit comments