From 5cd3f71792676c9605101c699fb2688777fc5a5e Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 2 Feb 2016 13:00:24 -0800 Subject: [PATCH] Handle utf-8 in module short desc --- hacking/module_formatter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index 4c94ca3f2c4..43b76ae71be 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -38,6 +38,7 @@ from six import iteritems 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 ##################################################################################### @@ -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):