Skip to content

Commit 72481b0

Browse files
fix for apply.go
1 parent 42e8202 commit 72481b0

File tree

1 file changed

+5
-5
lines changed
  • helpers/foundation-deployer/stages

1 file changed

+5
-5
lines changed

helpers/foundation-deployer/stages/apply.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,12 @@ func DeployNetworksStage(t testing.TB, s steps.Steps, tfvars GlobalTFVars, outpu
278278

279279
step := GetNetworkStep(c.EnableHubAndSpoke)
280280

281-
var localStep string
281+
var localStep []string
282282

283283
if c.EnableHubAndSpoke {
284-
localStep = "shared"
284+
localStep = []string{"shared"}
285285
} else {
286-
localStep = "production"
286+
localStep = []string{"shared", "production"}
287287
}
288288

289289
// shared
@@ -326,7 +326,7 @@ func DeployNetworksStage(t testing.TB, s steps.Steps, tfvars GlobalTFVars, outpu
326326
Repo: NetworksRepo,
327327
GitConf: conf,
328328
HasLocalStep: true,
329-
LocalSteps: []string{localStep},
329+
LocalSteps: localStep,
330330
GroupingUnits: []string{"envs"},
331331
Envs: []string{"production", "nonproduction", "development"},
332332
}
@@ -378,7 +378,7 @@ func DeployProjectsStage(t testing.TB, s steps.Steps, tfvars GlobalTFVars, outpu
378378
Repo: ProjectsRepo,
379379
GitConf: conf,
380380
HasLocalStep: true,
381-
LocalSteps: []string{"shared", "production"},
381+
LocalSteps: []string{"shared"},
382382
GroupingUnits: []string{"business_unit_1"},
383383
Envs: []string{"production", "nonproduction", "development"},
384384
}

0 commit comments

Comments
 (0)