From a6c8d30f3e3e9fd99e9b23463d52031ffa45c699 Mon Sep 17 00:00:00 2001 From: Gerard Lynch Date: Fri, 17 Jul 2015 15:26:46 +0100 Subject: [PATCH] callbacks require a version constant or the v2 code doesn't pass the display param and it gives an error --- lib/ansible/plugins/callback/profile_tasks.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/callback/profile_tasks.py b/lib/ansible/plugins/callback/profile_tasks.py index 90ee25d3a29..f873b75ead0 100644 --- a/lib/ansible/plugins/callback/profile_tasks.py +++ b/lib/ansible/plugins/callback/profile_tasks.py @@ -58,7 +58,14 @@ def tasktime(): class CallbackModule(CallbackBase): - + """ + This callback module provides per-task timing, ongoing playbook elapsed time + and ordered list of top 20 longest running tasks at end. + """ + CALLBACK_VERSION = 2.0 + CALLBACK_TYPE = 'aggregate' + CALLBACK_NAME = 'profile_tasks' + def __init__(self, display): self.stats = {} self.current = None