bug fix: mongodb mechanism parameter for authentication
This commit is contained in:
parent
db1496dd38
commit
7c328e5106
|
@ -59,7 +59,7 @@ class Mongo :
|
||||||
username=username,
|
username=username,
|
||||||
password=password ,
|
password=password ,
|
||||||
authSource=authSource,
|
authSource=authSource,
|
||||||
authMechanism='SCRAM-SHA-256')
|
authMechanism=authMechanism)
|
||||||
else:
|
else:
|
||||||
self.client = MongoClient(host,maxPoolSize=10000)
|
self.client = MongoClient(host,maxPoolSize=10000)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue