From faec03aabcdcd905eb2d4b45a9b92432f78ea670 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 1 Jul 2016 10:21:49 -0400 Subject: [PATCH] fix encoding issues in profile_tasks (#16522) * fix encoding issues in profile_tasks fixes #16521 * really fix it * unicode the nested * simpler format * readded space after name --- lib/ansible/plugins/callback/profile_tasks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ansible/plugins/callback/profile_tasks.py b/lib/ansible/plugins/callback/profile_tasks.py index 19bdd5bf4c..7d3bc30b48 100644 --- a/lib/ansible/plugins/callback/profile_tasks.py +++ b/lib/ansible/plugins/callback/profile_tasks.py @@ -133,8 +133,7 @@ class CallbackModule(CallbackBase): # Print the timings for uuid, result in results: - msg = '' - msg="{0:-<70}{1:->9}".format('{0} '.format(result['name']),' {0:.02f}s'.format(result['time'])) + msg=u"{0:-<70} {1:->9}".format(result['name'],u' {0:.02f}s'.format(result['time'])) if 'path' in result: - msg += "\n{0:-<79}".format( '{0} '.format(result['path'])) + msg += u"\n{0:-<79}".format(result['path']) self._display.display(msg)