mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-01 10:52:33 +01:00
trace_cmd: fix parser to oportunistically convert parsed values to ints
This was done previosly but was broken by commit
1c146e3ce7
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user