Skip to content

Commit

Permalink
Merge pull request #1614 from jestabro/op-mode-route-output
Browse files Browse the repository at this point in the history
route: T4772: return list of dicts in 'raw' output
  • Loading branch information
jestabro committed Oct 24, 2022
2 parents f157aea + 1c05f8b commit ec82d60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/op_mode/route.py
Expand Up @@ -83,7 +83,12 @@ def show(raw: bool,

if raw:
from json import loads
return loads(output)
d = loads(output)
collect = []
for k,_ in d.items():
for l in d[k]:
collect.append(l)
return collect
else:
return output

Expand Down

0 comments on commit ec82d60

Please sign in to comment.