Fix mongodb_user default role value when update_password is set (#2997)

This commit is contained in:
Lujeni 2016-09-23 21:44:42 +02:00 committed by René Moser
parent 6444cb3f70
commit 8aa338ddfa

View file

@ -322,7 +322,7 @@ def main():
ssl_cert_reqs = None ssl_cert_reqs = None
if ssl: if ssl:
ssl_cert_reqs = getattr(ssl_lib, module.params['ssl_cert_reqs']) ssl_cert_reqs = getattr(ssl_lib, module.params['ssl_cert_reqs'])
roles = module.params['roles'] roles = module.params['roles'] or []
state = module.params['state'] state = module.params['state']
update_password = module.params['update_password'] update_password = module.params['update_password']