Skip to content

Commit

Permalink
Handle utf-8 in module short desc
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed Feb 2, 2016
1 parent 42e312d commit 5cd3f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hacking/module_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

from ansible.utils import module_docs
from ansible.utils.vars import merge_hash
from ansible.utils.unicode import to_bytes
from ansible.errors import AnsibleError

#####################################################################################
Expand Down Expand Up @@ -343,7 +344,7 @@ def print_modules(module, category_file, deprecated, core, options, env, templat
result = process_module(modname, options, env, template, outputname, module_map, aliases)

if result != "SKIPPED":
category_file.write(" %s - %s <%s_module>\n" % (modstring, rst_ify(result), module))
category_file.write(" %s - %s <%s_module>\n" % (to_bytes(modstring), to_bytes(rst_ify(result)), to_bytes(module)))

def process_category(category, categories, options, env, template, outputname):

Expand Down

0 comments on commit 5cd3f71

Please sign in to comment.