|
|
@ -225,10 +225,10 @@ def main():
|
|
|
|
update_password = module.params['update_password']
|
|
|
|
update_password = module.params['update_password']
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if replica_set:
|
|
|
|
if replica_set:
|
|
|
|
client = MongoClient(login_host, int(login_port), replicaset=replica_set, ssl=ssl)
|
|
|
|
client = MongoClient(login_host, int(login_port), replicaset=replica_set, ssl=ssl)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
client = MongoClient(login_host, int(login_port), ssl=ssl)
|
|
|
|
client = MongoClient(login_host, int(login_port), ssl=ssl)
|
|
|
|
|
|
|
|
|
|
|
|
if login_user is None and login_password is None:
|
|
|
|
if login_user is None and login_password is None:
|
|
|
|
mongocnf_creds = load_mongocnf()
|
|
|
|
mongocnf_creds = load_mongocnf()
|
|
|
|