summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-02-02 21:55:27 +0100
committerGitHub <noreply@github.com>2023-02-02 21:55:27 +0100
commitd637e87a9e462b513c5732bd85ba137d03616b36 (patch)
tree789e0429d6f29719aab48b9040cf4d931aef7658
parentUse arg validation in debug action (#79866) (diff)
downloadansible-d637e87a9e462b513c5732bd85ba137d03616b36.tar.xz
ansible-d637e87a9e462b513c5732bd85ba137d03616b36.zip
user - Remove invalid return docs (#79891)
-rw-r--r--changelogs/fragments/user-module-return-docs.yml3
-rw-r--r--lib/ansible/modules/user.py10
2 files changed, 3 insertions, 10 deletions
diff --git a/changelogs/fragments/user-module-return-docs.yml b/changelogs/fragments/user-module-return-docs.yml
new file mode 100644
index 0000000000..9de0b2b32f
--- /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 2fc4e47397..97873346e0 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
'''