From efa4bbc61a2b3b71cc3b5993db5dfe2c9f6dd131 Mon Sep 17 00:00:00 2001 From: jafermarq Date: Wed, 4 Dec 2024 12:48:45 +0000 Subject: [PATCH 1/2] micro fix --- src/py/flwr/cli/run/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/flwr/cli/run/run.py b/src/py/flwr/cli/run/run.py index 05c4bf183dda..86fe99febe85 100644 --- a/src/py/flwr/cli/run/run.py +++ b/src/py/flwr/cli/run/run.py @@ -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": True if res.HasField("run_id") else False, "run-id": res.run_id if res.HasField("run_id") else None, "fab-id": fab_id, "fab-name": fab_id.rsplit("/", maxsplit=1)[-1], From 2327cb5ed6fe75e1fa1493b5e640358c14cd7e18 Mon Sep 17 00:00:00 2001 From: jafermarq Date: Wed, 4 Dec 2024 12:54:58 +0000 Subject: [PATCH 2/2] better --- src/py/flwr/cli/run/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/flwr/cli/run/run.py b/src/py/flwr/cli/run/run.py index 86fe99febe85..5696533a8f14 100644 --- a/src/py/flwr/cli/run/run.py +++ b/src/py/flwr/cli/run/run.py @@ -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],