Skip to content

Commit 2b848b5

Browse files
committed
PYTHON-5429 Server command is case sensitive
Via Erwin Pe, "libmongocrypt does case sensitive comparison of command names against the list of eligible commands."
1 parent c788c7e commit 2b848b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymongo/asynchronous/mongo_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,7 @@ async def server_info(
23112311
return cast(
23122312
dict,
23132313
await self.admin.command(
2314-
"buildinfo", read_preference=ReadPreference.PRIMARY, session=session
2314+
"buildInfo", read_preference=ReadPreference.PRIMARY, session=session
23152315
),
23162316
)
23172317

pymongo/synchronous/mongo_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2303,7 +2303,7 @@ def server_info(self, session: Optional[client_session.ClientSession] = None) ->
23032303
return cast(
23042304
dict,
23052305
self.admin.command(
2306-
"buildinfo", read_preference=ReadPreference.PRIMARY, session=session
2306+
"buildInfo", read_preference=ReadPreference.PRIMARY, session=session
23072307
),
23082308
)
23092309

0 commit comments

Comments
 (0)