From 548833df0cd308c3353f36802c2a44fab7d8d4ad Mon Sep 17 00:00:00 2001 From: Fredrik Wrede Date: Sun, 22 Sep 2024 07:07:59 +0000 Subject: [PATCH] fix --- fedn/cli/client_cmd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fedn/cli/client_cmd.py b/fedn/cli/client_cmd.py index 0b163e4d8..fb124dcf6 100644 --- a/fedn/cli/client_cmd.py +++ b/fedn/cli/client_cmd.py @@ -16,9 +16,12 @@ def validate_client_config(config): """ try: if config["discover_host"] is None or config["discover_host"] == "": - raise InvalidClientConfig("Missing required configuration: discover_host") + if config["combiner"] is None or config["combiner"] == "": + raise InvalidClientConfig("Missing required configuration: discover_host or combiner") if "discover_port" not in config.keys(): config["discover_port"] = None + if config["remote_compute_context"] and config["discover_host"] is None: + raise InvalidClientConfig("Remote compute context requires discover_host") except Exception: raise InvalidClientConfig("Could not load config from file. Check config")