We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 188cbaa commit 0e7dbdaCopy full SHA for 0e7dbda
library/mongodb_replication.py
@@ -301,7 +301,7 @@ def load_mongocnf():
301
302
return creds
303
304
-def wait_for_ok_and_master(module, client, timeout = 60):
+def wait_for_ok_and_master(module, client, timeout = 120):
305
while True:
306
status = client.admin.command('replSetGetStatus', check=False)
307
if status['ok'] == 1 and status['myState'] == 1:
@@ -397,6 +397,10 @@ def main():
397
connection_params = {
398
"host": login_host,
399
"port": int(login_port),
400
+ "username": login_user,
401
+ "password": login_password,
402
+ "authsource": login_database,
403
+ "serverselectiontimeoutms": 110000,
404
}
405
406
if ssl:
0 commit comments