From d942196666e57fcad864fe6a6457c7a89e29cfee Mon Sep 17 00:00:00 2001 From: Lujeni Date: Mon, 6 Mar 2017 22:14:14 +0100 Subject: [PATCH] Use a dedicated directory for the mongodb modules (#22187) * Use a dedicated directory for the mongodb modules * Missing the RETURN documentation in mongodb_user --- lib/ansible/modules/database/mongodb/__init__.py | 0 .../database/{misc => mongodb}/mongodb_parameter.py | 0 .../modules/database/{misc => mongodb}/mongodb_user.py | 7 +++++++ test/sanity/pep8/legacy-files.txt | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 lib/ansible/modules/database/mongodb/__init__.py rename lib/ansible/modules/database/{misc => mongodb}/mongodb_parameter.py (100%) rename lib/ansible/modules/database/{misc => mongodb}/mongodb_user.py (99%) diff --git a/lib/ansible/modules/database/mongodb/__init__.py b/lib/ansible/modules/database/mongodb/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/lib/ansible/modules/database/misc/mongodb_parameter.py b/lib/ansible/modules/database/mongodb/mongodb_parameter.py similarity index 100% rename from lib/ansible/modules/database/misc/mongodb_parameter.py rename to lib/ansible/modules/database/mongodb/mongodb_parameter.py diff --git a/lib/ansible/modules/database/misc/mongodb_user.py b/lib/ansible/modules/database/mongodb/mongodb_user.py similarity index 99% rename from lib/ansible/modules/database/misc/mongodb_user.py rename to lib/ansible/modules/database/mongodb/mongodb_user.py index a6be32d1b84..c80acdd6ffc 100644 --- a/lib/ansible/modules/database/misc/mongodb_user.py +++ b/lib/ansible/modules/database/mongodb/mongodb_user.py @@ -189,6 +189,13 @@ EXAMPLES = ''' ''' +RETURN = ''' +user: + description: The name of the user to add or remove. + returned: success + type: string +''' + import os import ssl as ssl_lib from distutils.version import LooseVersion diff --git a/test/sanity/pep8/legacy-files.txt b/test/sanity/pep8/legacy-files.txt index 25d19676394..f6efd53c2b7 100644 --- a/test/sanity/pep8/legacy-files.txt +++ b/test/sanity/pep8/legacy-files.txt @@ -104,7 +104,7 @@ lib/ansible/modules/cloud/webfaction/webfaction_site.py lib/ansible/modules/clustering/consul.py lib/ansible/modules/commands/script.py lib/ansible/modules/database/influxdb/influxdb_retention_policy.py -lib/ansible/modules/database/misc/mongodb_user.py +lib/ansible/modules/database/mongodb/mongodb_user.py lib/ansible/modules/database/mssql/mssql_db.py lib/ansible/modules/database/mysql/mysql_db.py lib/ansible/modules/database/mysql/mysql_replication.py