diff --git a/pymongo/mongo_client.py b/pymongo/mongo_client.py index 8bdc8146a..11d1599ad 100644 --- a/pymongo/mongo_client.py +++ b/pymongo/mongo_client.py @@ -1761,7 +1761,7 @@ class MongoClient(common.BaseObject, Generic[_DocumentType]): "firstBatch": res["databases"], "ns": "admin.$cmd", } - return CommandCursor(admin["$cmd"], cursor, None, comment) + return CommandCursor(admin["$cmd"], cursor, None, comment=comment) def list_database_names( self,