ansible/ansible — pull request #2071 by candeira (2013-02-13 13:46:15+00:00)
Title: fix remote execution NameError in module 'user'

Bugfix cherrypicked onto release1.0 branch. Original writeup copied for future generations.

Remote execution of module "user" produced this traceback:

Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-1360686502.37-80297117549296/user", line 1665, in
main()
File "/root/.ansible/tmp/ansible-1360686502.37-80297117549296/user", line 864, in main
module.fail_json(name=name, msg=err, rc=rc)
NameError: global name 'name' is not defined

Patch fixes it, and 'make tests' passes all tests but one (which is skipped).