diff --git a/changelogs/fragments/46443-mongodb_user-fix-roles-default-value.yaml b/changelogs/fragments/46443-mongodb_user-fix-roles-default-value.yaml new file mode 100644 index 0000000000..2feb2d0469 --- /dev/null +++ b/changelogs/fragments/46443-mongodb_user-fix-roles-default-value.yaml @@ -0,0 +1,2 @@ +minor_changes: +- mongodb_user - Change value for parameter roles to empty (https://github.com/ansible/ansible/issues/46443) diff --git a/lib/ansible/modules/database/mongodb/mongodb_user.py b/lib/ansible/modules/database/mongodb/mongodb_user.py index 6e6093ff8d..f5634e9813 100644 --- a/lib/ansible/modules/database/mongodb/mongodb_user.py +++ b/lib/ansible/modules/database/mongodb/mongodb_user.py @@ -77,7 +77,6 @@ options: 'dbAdminAnyDatabase' - "Or the following dictionary '{ db: DATABASE_NAME, role: ROLE_NAME }'." - "This param requires pymongo 2.5+. If it is a string, mongodb 2.4+ is also required. If it is a dictionary, mongo 2.6+ is required." - default: "readWrite" state: description: - The database user state diff --git a/test/sanity/validate-modules/ignore.txt b/test/sanity/validate-modules/ignore.txt index 412dc5342e..b19d2e3628 100644 --- a/test/sanity/validate-modules/ignore.txt +++ b/test/sanity/validate-modules/ignore.txt @@ -377,7 +377,6 @@ lib/ansible/modules/database/mongodb/mongodb_parameter.py E317 lib/ansible/modules/database/mongodb/mongodb_parameter.py E323 lib/ansible/modules/database/mongodb/mongodb_parameter.py E326 lib/ansible/modules/database/mongodb/mongodb_user.py E322 -lib/ansible/modules/database/mongodb/mongodb_user.py E324 lib/ansible/modules/database/mysql/mysql_replication.py E325 lib/ansible/modules/database/mysql/mysql_replication.py E326 lib/ansible/modules/database/mysql/mysql_user.py E322