Fix tripleo_profile_tasks callback plugin _output()

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

Change-Id: Ied39aaef9c65c65f33cceb99071c53af7f9aa464
changes/50/733750/1
Rabi Mishra 3 years ago
parent f54ec76a4f
commit f0dbd1d0f5

@ -49,13 +49,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