1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update mongodb_user.py

Typo
This commit is contained in:
lsb 2016-02-05 17:10:44 -08:00 committed by Matt Clay
parent 39ece09e86
commit 2095aa5100

View file

@ -166,7 +166,7 @@ def user_find(client, user):
return False return False
def user_add(module, client, db_name, user, password, roles): def user_add(module, client, db_name, user, password, roles):
#pymono's user_add is a _create_or_update_user so we won't know if it was changed or updated #pymongo's user_add is a _create_or_update_user so we won't know if it was changed or updated
#without reproducing a lot of the logic in database.py of pymongo #without reproducing a lot of the logic in database.py of pymongo
db = client[db_name] db = client[db_name]
if roles is None: if roles is None: