Parcourir la source

bug fix: mongodb mechanism parameter for authentication

Steve Nyemba il y a 3 ans
Parent
commit
7c328e5106
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)