diff --git a/user b/user index 0a0327d2f7a..5f08a1b1005 100644 --- a/user +++ b/user @@ -861,7 +861,7 @@ def main(): if user.user_exists(): (rc, out, err) = user.remove_user() 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['remove'] = user.remove elif user.state == 'present':