ソースを参照

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)