From c12ada981dd0c283dd3ddc870a58717bd69189a4 Mon Sep 17 00:00:00 2001 From: KatHellg Date: Fri, 3 Jan 2025 17:20:47 +0100 Subject: [PATCH] changed from project name to project slug in context file --- fedn/cli/login_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedn/cli/login_cmd.py b/fedn/cli/login_cmd.py index e75bd7081..ecc8bb1fb 100644 --- a/fedn/cli/login_cmd.py +++ b/fedn/cli/login_cmd.py @@ -84,7 +84,7 @@ def get_context(response, protocol, host): except requests.exceptions.ConnectionError: click.echo(f"Error: Could not connect to {url_project_token}") - context_data = {"User tokens": user_token_data, "Active project tokens": project_tokens, "Active project name": projects_response_json[0].get("name")} + context_data = {"User tokens": user_token_data, "Active project tokens": project_tokens, "Active project slug": projects_response_json[0].get("slug")} return context_data else: click.secho("Login failed. Please check your credentials.", fg="red")