mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-21 01:59:13 +00:00
trace_cmd: fix parser to oportunistically convert parsed values to ints
This was done previosly but was broken by commit 1c146e3ce78de44889712b58f293a859b9df8321
This commit is contained in:
parent
4fa3d9de6e
commit
7546232c10
@ -139,6 +139,10 @@ def default_body_parser(event, text):
|
||||
if not len(parts) % 2:
|
||||
i = iter(parts)
|
||||
for k, v in zip(i, i):
|
||||
try:
|
||||
v = int(v)
|
||||
except ValueError:
|
||||
pass
|
||||
event.fields[k] = v
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user