mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user