Skip to content

Instantly share code, notes, and snippets.

@bwhaley
Created April 11, 2014 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwhaley/10508449 to your computer and use it in GitHub Desktop.
Save bwhaley/10508449 to your computer and use it in GitHub Desktop.
ansible make webdocs error
rendering: slack
rendering: slurp
rendering: sns
rendering: stackdriver
Traceback (most recent call last):
File "../hacking/module_formatter.py", line 323, in <module>
main()
File "../hacking/module_formatter.py", line 318, in main
process_category(category, categories, options, env, template, outputname)
File "../hacking/module_formatter.py", line 268, in process_category
result = process_module(module, options, env, template, outputname, module_map)
File "../hacking/module_formatter.py", line 234, in process_module
text = template.render(doc)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "../hacking/templates/rst.j2", line 64, in top-level template code
<td>{% for desc in v.description -%}@{ desc | html_ify }@{% endfor -%}{% if v['version_added'] %} (added in Ansible @{v['version_added']}@){% endif %}</td>
File "../hacking/module_formatter.py", line 79, in html_ify
t = cgi.escape(text)
File "/usr/lib/python2.7/cgi.py", line 1035, in escape
s = s.replace("&", "&amp;") # Must be done first!
AttributeError: 'dict' object has no attribute 'replace'
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/vagrant/ansible/docsite'
make: *** [webdocs] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment