Skip to content

Commit de0f78d

Browse files
authored
bug: remove applying stage & prod at the same time (#400)
* bug: remove applying stage & prod at the same time in many places in templates we use var.enviroment, which means it will template out resources name such as `project-stage,prod-db` and theres not too much value in doing both at the same time as of now
1 parent 5f59536 commit de0f78d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
368368
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
369369
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
370370
github.com/svanharmelen/jsonapi v0.0.0-20180618144545-0c0828c3f16d/go.mod h1:BSTlc8jOjh0niykqEGVXOLXdi9o0r0kR8tCYiMvjFgw=
371+
github.com/tencentcloud/tencentcloud-sdk-go v1.0.191/go.mod h1:asUz5BPXxgoPGaRgZaVm1iGcUAuHyYUo1nXqKa83cvI=
371372
github.com/tencentcloud/tencentcloud-sdk-go v3.0.82+incompatible/go.mod h1:0PfYow01SHPMhKY31xa+EFz2RStxIqj6JFAJS+IkCi4=
372373
github.com/tencentyun/cos-go-sdk-v5 v0.0.0-20190808065407-f07404cefc8c/go.mod h1:wk2XFUg6egk4tSDNZtXeKfe2G6690UVyt163PuUxBZk=
373374
github.com/termie/go-shutil v0.0.0-20140729215957-bcacb06fecae h1:vgGSvdW5Lqg+I1aZOlG32uyE6xHpLdKhZzcTEktz5wM=

internal/apply/apply.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,11 @@ func getModuleOperationCommand(mod moduleconfig.ModuleConfig, operation string)
167167
// promptEnvironments Prompts the user for the environments to apply against and returns a slice of strings representing the environments
168168
func promptEnvironments() []string {
169169
items := map[string][]string{
170-
"Staging": {"stage"},
171-
"Production": {"prod"},
172-
"Both Staging and Production": {"stage", "prod"},
170+
"Staging": {"stage"},
171+
"Production": {"prod"},
173172
}
174173

175-
labels := []string{"Staging", "Production", "Both Staging and Production"}
174+
labels := []string{"Staging", "Production"}
176175

177176
providerPrompt := promptui.Select{
178177
Label: "Environments",

0 commit comments

Comments
 (0)