1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
This commit is contained in:
Brian Coca 2016-07-01 10:21:49 -04:00 committed by GitHub
parent 26755b3a62
commit faec03aabc

View file

@ -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)