mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
fix remote execution NameError in module 'user'
This commit is contained in:
@@ -861,7 +861,7 @@ def main():
|
|||||||
if user.user_exists():
|
if user.user_exists():
|
||||||
(rc, out, err) = user.remove_user()
|
(rc, out, err) = user.remove_user()
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
module.fail_json(name=name, msg=err, rc=rc)
|
module.fail_json(name=user.name, msg=err, rc=rc)
|
||||||
result['force'] = user.force
|
result['force'] = user.force
|
||||||
result['remove'] = user.remove
|
result['remove'] = user.remove
|
||||||
elif user.state == 'present':
|
elif user.state == 'present':
|
||||||
|
|||||||
Reference in New Issue
Block a user