From 593557ecb926004c965a242fc1b47fb09617adf9 Mon Sep 17 00:00:00 2001 From: Isaac Yang Date: Thu, 12 Dec 2024 14:43:24 -0800 Subject: [PATCH] Keep project_name shorter than the limit (#3106) * Fix #3093 * Address comments --- nvflare/lighter/provision.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvflare/lighter/provision.py b/nvflare/lighter/provision.py index 138a82282a..967877ccb5 100644 --- a/nvflare/lighter/provision.py +++ b/nvflare/lighter/provision.py @@ -133,6 +133,10 @@ def prepare_project(project_dict, add_user_file_path=None, add_client_file_path= if api_version not in [3]: raise ValueError(f"API version expected 3 but found {api_version}") project_name = project_dict.get("name") + if len(project_name) > 63: + print(f"Project name {project_name} is longer than 63. Will truncate it to {project_name[:63]}.") + project_name = project_name[:63] + project_dict["name"] = project_name project_description = project_dict.get("description", "") participants = list() for p in project_dict.get("participants"):