http://docs.ansible.com/developing_modules.html

the verbose educational example dumped this

ansible/hacking/test-module -m ./timex.py -a time=\"March 14 12:23\"
* including generated source, if any, saving to: 
/Users/pixel/.ansible_module_generated
* this may offset any line numbers in tracebacks/debuggers!
***********************************
RAW OUTPUT

Traceback (most recent call last):
  File "/Users/pixel/.ansible_module_generated", line 21, in <module>
    arguments = shlex.split(args_data)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py",
 
line 279, in split
    return list(lex)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py",
 
line 269, in next
    token = self.get_token()
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py",
 
line 96, in get_token
    raw = self.read_token()
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py",
 
line 172, in read_token
    raise ValueError, "No closing quotation"
ValueError: No closing quotation

***********************************
INVALID OUTPUT FORMAT

Traceback (most recent call last):
  File "ansible/hacking/test-module", line 153, in runtest
    results = utils.parse_json(out)
  File "/void/pixel/vcstree/ansible/lib/ansible/utils/__init__.py", line 
541, in parse_json
    results = json.loads(data)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
 
line 338, in loads
    return _default_decoder.decode(s)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
 
line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
 
line 383, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e7079792-b8f6-4157-962a-4876679599b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to