mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
fixed var scope
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user