Skip to content

Commit

Permalink
caliperreader: handle other metadata types
Browse files Browse the repository at this point in the history
environment information service can produce a native list
  • Loading branch information
slabasan committed Jul 21, 2023
1 parent e9e06df commit 5e21b7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hatchet/readers/caliper_native_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ def _parse_metadata(self, mdata):
"""
parsed_mdata = {}
for k, v in mdata.items():
# environment information service brings in different metadata types
if isinstance(v, list):
parsed_mdata[k] = v
continue
# If the value is an int, convert it to an int.
try:
parsed_mdata[k] = int(v)
Expand Down

0 comments on commit 5e21b7a

Please sign in to comment.