1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixed var scope

This commit is contained in:
Brian Coca 2015-07-17 08:54:28 -04:00
parent 080ee1e96c
commit 10e5c2b46d

View file

@ -12,13 +12,11 @@ class CallbackModule(CallbackBase):
CALLBACK_TYPE = 'aggregate' CALLBACK_TYPE = 'aggregate'
CALLBACK_NAME = 'timer' CALLBACK_NAME = 'timer'
start_time = datetime.now()
def __init__(self, display): def __init__(self, display):
super(CallbackModule, self).__init__(display) super(CallbackModule, self).__init__(display)
start_time = datetime.now() self.start_time = datetime.now()
def days_hours_minutes_seconds(self, timedelta): def days_hours_minutes_seconds(self, timedelta):
minutes = (timedelta.seconds//60)%60 minutes = (timedelta.seconds//60)%60