From cd16a7f3c8209a80f9fffbc8871a9ee1fbdb348b Mon Sep 17 00:00:00 2001 From: Cas de Reuver Date: Thu, 27 Jan 2022 17:13:57 +0100 Subject: [PATCH] Actually pass auth_mechanism parameter to mongo_connect --- check_mongodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_mongodb.py b/check_mongodb.py index f4102ee..128fb95 100755 --- a/check_mongodb.py +++ b/check_mongodb.py @@ -200,7 +200,7 @@ def main(argv): # moving the login up here and passing in the connection # start = time.time() - err, con = mongo_connect(host, port, ssl, user, passwd, replicaset, authdb, insecure, ssl_ca_cert_file, cert_file, retry_writes_disabled=retry_writes_disabled) + err, con = mongo_connect(host, port, ssl, user, passwd, replicaset, authdb, insecure, ssl_ca_cert_file, cert_file, auth_mechanism, retry_writes_disabled) if err != 0: return err