Skip to content

Commit

Permalink
fix(framework:skip) Ensure success field in flwr run returned JSO…
Browse files Browse the repository at this point in the history
…N is boolean (adap#4632)
  • Loading branch information
jafermarq authored and flydump committed Dec 8, 2024
1 parent 22e16a6 commit be21185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/flwr/cli/run/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _run_with_exec_api(
if output_format == CliOutputFormat.JSON:
run_output = json.dumps(
{
"success": "true" if res.HasField("run_id") else "false",
"success": res.HasField("run_id"),
"run-id": res.run_id if res.HasField("run_id") else None,
"fab-id": fab_id,
"fab-name": fab_id.rsplit("/", maxsplit=1)[-1],
Expand Down

0 comments on commit be21185

Please sign in to comment.