Fix team hub id generation on boot

This commit is contained in:
Jonatan Kłosko 2024-11-12 21:47:58 +08:00
parent 93cefc6d5e
commit 152ee04484

View file

@ -239,11 +239,11 @@ defmodule Livebook.Application do
{hub_id, fun} =
case String.split(auth, ":") do
["offline", name, public_key] ->
hub_id = "teams-#{name}"
hub_id = "team-#{name}"
{hub_id, fn -> create_offline_hub(teams_key, hub_id, name, public_key) end}
["online", name, org_id, org_key_id, agent_key] ->
hub_id = "teams-" <> name
hub_id = "team-" <> name
with :error <- Application.fetch_env(:livebook, :identity_provider) do
Application.put_env(