Skip to content

Commit

Permalink
changed from project name to project slug in context file
Browse files Browse the repository at this point in the history
  • Loading branch information
KatHellg committed Jan 3, 2025
1 parent a6f6446 commit c12ada9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedn/cli/login_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit c12ada9

Please sign in to comment.