Closed naftulikay closed 7 years ago
When a module failure occurs, this is what it looks like:
TASK [degoss : report module errors] ****************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Goss Module Run Failed."}
Traceback (most recent call last):
File "/tmp/ansible_KpY4sb/ansible_module_goss.py", line 96, in <module>
main()
File "/tmp/ansible_KpY4sb/ansible_module_goss.py", line 88, in main
rc, stdout, stderr = evaluate(module, test_file, fmt, executable, env_vars)
File "/tmp/ansible_KpY4sb/ansible_module_goss.py", line 52, in evaluate
environ_update=env_vars
File "/tmp/ansible_KpY4sb/ansible_modlib.zip/ansible/module_utils/basic.py", line 2328, in run_command
File "/usr/lib/python2.7/os.py", line 473, in __setitem__
putenv(key, item)
TypeError: putenv() argument 2 must be string, not bool
This solves acceptance criteria in #12.
Closes #12.