From 7546232c103693ab570a1b2e5738820683bb2670 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 16 Oct 2015 17:08:09 +0100 Subject: [PATCH] trace_cmd: fix parser to oportunistically convert parsed values to ints This was done previosly but was broken by commit 1c146e3ce78de44889712b58f293a859b9df8321 --- wlauto/utils/trace_cmd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wlauto/utils/trace_cmd.py b/wlauto/utils/trace_cmd.py index 6cd2ea89..e124ed56 100644 --- a/wlauto/utils/trace_cmd.py +++ b/wlauto/utils/trace_cmd.py @@ -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