summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/user.py
diff options
context:
space:
mode:
authorMatt Clay <mclay@redhat.com>2021-08-11 14:47:23 -0700
committerGitHub <noreply@github.com>2021-08-11 17:47:23 -0400
commitce6d8a143c6d0458c548f273d8564e4c2fac209f (patch)
tree0d7d74b58ea59acbfdbc0dce7175c43d6d6956e2 /lib/ansible/modules/user.py
parentdc6878007be61cdfd7f1b79288c6d0b81d4cf3d2 (diff)
downloadansible-ce6d8a143c6d0458c548f273d8564e4c2fac209f.tar.gz
Code cleanup to prepare for pylint update. (#75475)
* user - Remove unused code. * Replace deprecated abstractproperty decorator. * Fix __all__ to be a tuple. * Use a generator in subelements lookup. * Use from import in basic.py * Add changelog fragment. * Fix selinux unit test.
Diffstat (limited to 'lib/ansible/modules/user.py')
-rw-r--r--lib/ansible/modules/user.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/modules/user.py b/lib/ansible/modules/user.py
index 1a72201a1a..364bf1a5fe 100644
--- a/lib/ansible/modules/user.py
+++ b/lib/ansible/modules/user.py
@@ -3197,12 +3197,12 @@ def main():
# deal with password expire max
if user.password_expire_max:
if user.user_exists():
- (rc, out, err) = user.set_password_expire_max()
+ user.set_password_expire_max()
# deal with password expire min
if user.password_expire_min:
if user.user_exists():
- (rc, out, err) = user.set_password_expire_min()
+ user.set_password_expire_min()
module.exit_json(**result)