Explorar el Código

bug fix: mongodb mechanism parameter for authentication

Steve Nyemba hace 3 años
padre
commit
7c328e5106
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      transport/mongo.py

+ 1 - 1
transport/mongo.py

@@ -59,7 +59,7 @@ class Mongo :
                       username=username,
                       password=password ,
                       authSource=authSource,
-                      authMechanism='SCRAM-SHA-256')
+                      authMechanism=authMechanism)
         else:
             self.client = MongoClient(host,maxPoolSize=10000)