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:
parent
26755b3a62
commit
faec03aabc
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue