jeudi 23 février 2017

Ansible Module RAW OUTPUT

Trying to run test-module and getting bizarre output. I verified the ansible_module_my_module.py exists.

* including generated source, if any, saving to: /home/some_path/.ansible_module_generated
* ansiballz module detected; extracted module source to: /home/some_path/debug_dir
***********************************
RAW OUTPUT

/bin/sh: 1: /home/some_path/debug_dir/ansible_module_my_module.py: not found

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

Traceback (most recent call last):
  File "/home/some_path/ansible/hacking/test-module", line 197, in runtest
    results = json.loads(out)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Aucun commentaire:

Enregistrer un commentaire