Merge pull request #1628 from lsb/patch-1

Update mongodb_user.py
This commit is contained in:
René Moser 2016-03-19 00:45:24 +01:00
commit bf268e23c0

View file

@ -172,7 +172,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: