Преглед на файлове

bug fix: mongodb mechanism parameter for authentication

Steve Nyemba преди 3 години
родител
ревизия
7c328e5106
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)