Merge pull request #2061 from candeira/fix_bug_in_user_module

fix remote execution NameError in module 'user'
This commit is contained in:
Daniel Hokka Zakrisson 2013-02-12 09:22:46 -08:00
commit 0212fed922

View file

@ -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':