Browse Source

Merge "Fix tripleo_profile_tasks callback plugin _output()" into stable/train

changes/60/742560/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
78c3a2ff9c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tripleo_ansible/ansible_plugins/callback/tripleo_profile_tasks.py

+ 2
- 2
tripleo_ansible/ansible_plugins/callback/tripleo_profile_tasks.py View File

@@ -50,13 +50,13 @@ class CallbackModule(PT):
self.start_time = time.time()
super(CallbackModule, self).__init__()

def _output(self, msg, color):
def _output(self, msg, color=None):
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")
if isinstance(msg, list):
output = ' | '.join([timestamp] + msg)
else:
output = timestamp + ' | ' + msg
self._output(output, color=color)
self._display.display(output, color=color)

def _output_previous_timings(self, uuid):
# no previous timing because uuid was null


Loading…
Cancel
Save