pySim-shell: Use poutput_json() whenever applicable

poutput_json() uses a customs JSONEncoder, and hence all JSON
prenting should go through it.

Change-Id: Ie023669e77311350ade4f8dbc65431e71b586052
This commit is contained in:
Harald Welte 2021-04-10 17:19:13 +02:00
parent 5e749a79ac
commit b00e893e73
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ class Iso7816Commands(CommandSet):
path = opts.arg_list[0]
fcp_dec = self._cmd.rs.select(path, self._cmd)
self._cmd.update_prompt()
self._cmd.poutput(json.dumps(fcp_dec, indent=4))
self._cmd.poutput_json(fcp_dec)
def complete_select(self, text, line, begidx, endidx) -> List[str]:
"""Command Line tab completion for SELECT"""