From f8265ecc4e407f7ca62349d0977e9d35aa5a6f5a Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Wed, 2 Aug 2023 11:46:13 +0200 Subject: [PATCH] [PR #7043/d17ec06d backport][stable-7] ejabberd_user: deprecate parameter logging (#7058) ejabberd_user: deprecate parameter logging (#7043) * ejabberd_user: deprecate parameter logging * add changelog frag * Update plugins/modules/ejabberd_user.py (cherry picked from commit d17ec06d2ae6d88014249e31532d292f2b8faa3c) Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> --- changelogs/fragments/7043-ejabberd-user-deprecate-logging.yml | 2 ++ plugins/modules/ejabberd_user.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/7043-ejabberd-user-deprecate-logging.yml diff --git a/changelogs/fragments/7043-ejabberd-user-deprecate-logging.yml b/changelogs/fragments/7043-ejabberd-user-deprecate-logging.yml new file mode 100644 index 0000000000..beaec9ccc3 --- /dev/null +++ b/changelogs/fragments/7043-ejabberd-user-deprecate-logging.yml @@ -0,0 +1,2 @@ +deprecated_features: + - ejabberd_user - deprecate the parameter ``logging`` in favour of producing more detailed information in the module output (https://github.com/ansible-collections/community.general/pull/7043). diff --git a/plugins/modules/ejabberd_user.py b/plugins/modules/ejabberd_user.py index a8872cacc3..2ec1b0f218 100644 --- a/plugins/modules/ejabberd_user.py +++ b/plugins/modules/ejabberd_user.py @@ -150,7 +150,7 @@ def main(): username=dict(required=True, type='str'), password=dict(type='str', no_log=True), state=dict(default='present', choices=['present', 'absent']), - logging=dict(default=False, type='bool') # deprecate in favour of c.g.syslogger? + logging=dict(default=False, type='bool', removed_in_version='10.0.0', removed_from_collection='community.general'), ), required_if=[ ('state', 'present', ['password']),