From d637e87a9e462b513c5732bd85ba137d03616b36 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 2 Feb 2023 12:55:27 -0800 Subject: [PATCH] user - Remove invalid return docs (#79891) --- changelogs/fragments/user-module-return-docs.yml | 3 +++ lib/ansible/modules/user.py | 10 ---------- 2 files changed, 3 insertions(+), 10 deletions(-) create mode 100644 changelogs/fragments/user-module-return-docs.yml diff --git a/changelogs/fragments/user-module-return-docs.yml b/changelogs/fragments/user-module-return-docs.yml new file mode 100644 index 00000000000..9de0b2b32f7 --- /dev/null +++ b/changelogs/fragments/user-module-return-docs.yml @@ -0,0 +1,3 @@ +bugfixes: + - user module - Removed ``password_expire_max`` from the return docs, as it is not returned. + - user module - Removed ``password_expire_min`` from the return docs, as it is not returned. diff --git a/lib/ansible/modules/user.py b/lib/ansible/modules/user.py index 2fc4e47397f..97873346e0e 100644 --- a/lib/ansible/modules/user.py +++ b/lib/ansible/modules/user.py @@ -439,16 +439,6 @@ uid: returned: When I(uid) is passed to the module type: int sample: 1044 -password_expire_max: - description: Maximum number of days during which a password is valid. - returned: When user exists - type: int - sample: 20 -password_expire_min: - description: Minimum number of days between password change - returned: When user exists - type: int - sample: 20 '''