Skip to content

Commit 97525f6

Browse files
Fix dedicated stack provisioning (#1455)
1 parent 8728365 commit 97525f6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/core/lib/core/services/cloud/configuration.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ defmodule Core.Services.Cloud.Configuration do
8585
defp add_network(env, %ConsoleInstance{network: %ConsoleInstance.Network{allowed_cidrs: [_ | _] = cidrs}}) do
8686
env ++ [network_allowd_cidrs: Jason.encode!(cidrs)]
8787
end
88-
defp add_network(_, _), do: []
88+
defp add_network(env, _), do: env
8989

9090
defp add_oidc(env, %ConsoleInstance{oidc: %ConsoleInstance.OIDC{issuer: issuer, client_id: client_id, client_secret: client_secret}})
9191
when is_binary(issuer) and is_binary(client_id) and is_binary(client_secret) do
@@ -95,7 +95,7 @@ defmodule Core.Services.Cloud.Configuration do
9595
oidc_client_secret: client_secret
9696
]
9797
end
98-
defp add_oidc(_, _), do: []
98+
defp add_oidc(env, _), do: env
9999

100100
# defp certificate(%ConsoleInstance{postgres: %PostgresCluster{certificate: cert}}), do: cert
101101

apps/core/test/services/cloud/workflow_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ defmodule Core.Services.Cloud.WorkflowTest do
9999
assert attrs.repository_id == "repo-id"
100100
assert attrs.git.ref == "main"
101101
assert attrs.git.folder == "terraform/modules/dedicated/aws"
102+
refute Enum.empty?(attrs.environment)
102103

103104
del_q = Console.queries(:stack_delete)
104105
expect(Req, :post, fn _, [graphql: {^del_q, %{id: ^stack_id}}] ->

0 commit comments

Comments
 (0)