Skip to content

Commit 076d7ab

Browse files
committed
Clean up log parsing
1 parent 467f74c commit 076d7ab

File tree

1 file changed

+1
-3
lines changed
  • python/perftest/models/v1alpha1

1 file changed

+1
-3
lines changed

python/perftest/models/v1alpha1/fio.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,8 @@ def summarise(self):
276276
if not self.status.client_log:
277277
raise PodResultsIncompleteError("master pod has not recorded a result yet")
278278
# Compute the result from the client log
279-
# Drop the lines from the log until we reach the start of the results
280279
try:
281-
json_lines = it.dropwhile(lambda l: re.match(r"^{", l) is None, self.status.client_log.splitlines())
282-
fio_json = json.loads("\n".join(json_lines))
280+
fio_json = json.loads(self.status.client_log)
283281
except:
284282
raise PodLogFormatError("pod log is not of the expected format")
285283

0 commit comments

Comments
 (0)