Browse Source

Fix tripleo_profile_tasks callback plugin _output()

Regression from https://review.opendev.org/#/c/733394/

Partial-Bug: #1888488
Change-Id: Ied39aaef9c65c65f33cceb99071c53af7f9aa464
(cherry picked from commit f0dbd1d0f5)
tags/1.5.0
Rabi Mishra 2 months ago
committed by Bogdan Dobrelya (bogdando)
parent
commit
8794829156
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