From 10e5c2b46d42b20d58c445b55788e1bc8117cf52 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 17 Jul 2015 08:54:28 -0400 Subject: [PATCH] fixed var scope --- lib/ansible/plugins/callback/timer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ansible/plugins/callback/timer.py b/lib/ansible/plugins/callback/timer.py index 058cb4f4a4..f75b55e4be 100644 --- a/lib/ansible/plugins/callback/timer.py +++ b/lib/ansible/plugins/callback/timer.py @@ -12,13 +12,11 @@ class CallbackModule(CallbackBase): CALLBACK_TYPE = 'aggregate' CALLBACK_NAME = 'timer' - start_time = datetime.now() - def __init__(self, display): super(CallbackModule, self).__init__(display) - start_time = datetime.now() + self.start_time = datetime.now() def days_hours_minutes_seconds(self, timedelta): minutes = (timedelta.seconds//60)%60