chore: bound RELLIS qualification CLI output
This commit is contained in:
@@ -294,7 +294,20 @@ def qualify_rellis_ground_command(
|
|||||||
except (RellisAdmissionError, ValueError) as exc:
|
except (RellisAdmissionError, ValueError) as exc:
|
||||||
typer.echo(str(exc), err=True)
|
typer.echo(str(exc), err=True)
|
||||||
raise typer.Exit(code=2) from exc
|
raise typer.Exit(code=2) from exc
|
||||||
typer.echo(json.dumps(report, ensure_ascii=False, sort_keys=True))
|
typer.echo(
|
||||||
|
json.dumps(
|
||||||
|
{
|
||||||
|
"run_id": report["run_id"],
|
||||||
|
"source_id": report["source_id"],
|
||||||
|
"frame_count": report["frame_count"],
|
||||||
|
"identity_sha256": report["identity_sha256"],
|
||||||
|
"decision": report["decision"],
|
||||||
|
"aggregates": report["aggregates"],
|
||||||
|
},
|
||||||
|
ensure_ascii=False,
|
||||||
|
sort_keys=True,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user