Hi,
While running a resource module builder to create a skeleton of collection
, raised with exception.
The error is attached as a file.
Please help me in overcoming this problem.
Thanks,
Nitesh
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAPgfy9XdKvy7uDY79--D8yBY%2BH1pjPRWU8mqyJ3zfv7Z2L_k2g%40mail.gmail.com.
The full traceback is:
Traceback (most recent call last):
File
"/home/nshet/rmb/resource_module_builder/roles/scaffold_rm_facts/filter_plugins/to_doc.py",
line 144, in validate_model
raise AnsibleError("Error while parsing module: %s" % err)
ansible.errors.AnsibleError: Error while parsing module: b'Traceback (most
recent call last):\n File "/bin/ansible-doc", line 62, in <module>\n import
ansible.constants as C\n File
"/usr/lib/python2.7/site-packages/ansible/constants.py", line 12, in <module>\n
from jinja2 import Template\n File
"/usr/lib/python2.7/site-packages/jinja2/__init__.py", line 5, in <module>\n
from .bccache import BytecodeCache as BytecodeCache\n File
"/usr/lib/python2.7/site-packages/jinja2/bccache.py", line 26\n def
get(self, key: str) -> bytes:\n ^\nSyntaxError: invalid
syntax\n'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/home/nshet/.local/lib/python3.6/site-packages/ansible/plugins/action/template.py",
line 139, in run
resultant = self._templar.do_template(template_data,
preserve_trailing_newlines=True, escape_backslashes=False)
File
"/home/nshet/.local/lib/python3.6/site-packages/ansible/template/__init__.py",
line 1066, in do_template
res = j2_concat(rf)
File "<template>", line 35, in root
File
"/home/nshet/.local/lib/python3.6/site-packages/ansible/template/__init__.py",
line 264, in wrapper
ret = func(*args, **kwargs)
File
"/home/nshet/rmb/resource_module_builder/roles/scaffold_rm_facts/filter_plugins/to_doc.py",
line 178, in to_doc
validate_model(model, contents)
File
"/home/nshet/rmb/resource_module_builder/roles/scaffold_rm_facts/filter_plugins/to_doc.py",
line 148, in validate_model
% (err, contents))
ansible.errors.AnsibleError: Failed to validate the model with error: Error
while parsing module: b'Traceback (most recent call last):\n File
"/bin/ansible-doc", line 62, in <module>\n import ansible.constants as C\n
File "/usr/lib/python2.7/site-packages/ansible/constants.py", line 12, in
<module>\n from jinja2 import Template\n File
"/usr/lib/python2.7/site-packages/jinja2/__init__.py", line 5, in <module>\n
from .bccache import BytecodeCache as BytecodeCache\n File
"/usr/lib/python2.7/site-packages/jinja2/bccache.py", line 26\n def
get(self, key: str) -> bytes:\n ^\nSyntaxError: invalid
syntax\n'
ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'network'
}