Skip to content

Commit

Permalink
Remove warnings printed by seeds.exs
Browse files Browse the repository at this point in the history
Signed-off-by: Riccardo Binetti <[email protected]>
  • Loading branch information
rbino committed Jul 3, 2024
1 parent 63b9ace commit 07efdfb
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions backend/priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@
# SPDX-License-Identifier: Apache-2.0
#

alias Edgehog.{
Astarte,
BaseImages,
Devices,
Tenants
}
alias Edgehog.Astarte
alias Edgehog.Tenants

require Logger

Expand Down Expand Up @@ -143,12 +139,11 @@ if status == :default do
|> Logger.warning()
end

realm =
%{
cluster_id: cluster.id,
name: read_env_var.("SEEDS_REALM"),
private_key: realm_pk
}
|> Astarte.create_realm!(tenant: tenant)
%{
cluster_id: cluster.id,
name: read_env_var.("SEEDS_REALM"),
private_key: realm_pk
}
|> Astarte.create_realm!(tenant: tenant)

:ok

0 comments on commit 07efdfb

Please sign in to comment.