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
)
This commit is contained in:
parent
561b935adb
commit
8794829156
|
@ -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…
Reference in New Issue