From 798d05ea417d34e38bb8c00d4ef394763062f2d9 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 31 May 2017 13:03:10 -0400 Subject: [PATCH] corrected object with columns --- lib/ansible/plugins/callback/profile_tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/callback/profile_tasks.py b/lib/ansible/plugins/callback/profile_tasks.py index d5a88d3e1f..445cdfc8ef 100644 --- a/lib/ansible/plugins/callback/profile_tasks.py +++ b/lib/ansible/plugins/callback/profile_tasks.py @@ -136,7 +136,7 @@ class CallbackModule(CallbackBase): # Print the timings for uuid, result in results: - msg=u"{0:-<{2}}{1:->9}".format(result['name'] + u' ',u' {0:.02f}s'.format(result['time']), self.columns - 9) + msg=u"{0:-<{2}}{1:->9}".format(result['name'] + u' ',u' {0:.02f}s'.format(result['time']), self._display.columns - 9) if 'path' in result: - msg += u"\n{0:-<{1}}".format(result['path'] + u' ', self.columns) + msg += u"\n{0:-<{1}}".format(result['path'] + u' ', self._display.columns) self._display.display(msg)