aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/convert_xml_json.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-06-22 13:49:05 +0200
committerTibor Frank <tifrank@cisco.com>2021-06-22 12:32:06 +0000
commit1e76a745f69c5e4e083941fe67ef3b6313e2c565 (patch)
treea295f1c642f7af1bc212676c9f4f79c43090838c /resources/tools/presentation/convert_xml_json.py
parentfaf533dbdf66e5328e3e4ea117f24c613a35e7cc (diff)
PAL: Do not read sh run for trending
Change-Id: I0e142c1c3bb48ddeb0bcd2bfa11c0323461c1368 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 7c7cad880bb72b19671fec71b3f5d1350995161e)
Diffstat (limited to 'resources/tools/presentation/convert_xml_json.py')
-rw-r--r--resources/tools/presentation/convert_xml_json.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/tools/presentation/convert_xml_json.py b/resources/tools/presentation/convert_xml_json.py
index 61c6e84a98..f1994df6b8 100644
--- a/resources/tools/presentation/convert_xml_json.py
+++ b/resources/tools/presentation/convert_xml_json.py
@@ -28,6 +28,7 @@ import gzip
from os.path import join
from shutil import rmtree
from copy import deepcopy
+from json import loads
from pal_utils import get_files
@@ -207,7 +208,8 @@ def _export_test_from_xml_to_json(tid, in_data, out, template, metadata):
u"msg": u"show_runtime",
u"data": list()
}
- for item in val.get(u"runtime", list()):
+ runtime = loads(val.get(u"runtime", list()))
+ for item in runtime:
for metric, m_data in item.items():
if metric == u"name":
continue