From d1b3783afffac0f9107d1cab68cc2540ffd49ba6 Mon Sep 17 00:00:00 2001 From: David Cheung Date: Wed, 16 Sep 2020 13:47:34 -0400 Subject: [PATCH] fix: retain environment order during zero apply (#280) --- internal/apply/apply.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/apply/apply.go b/internal/apply/apply.go index 382b14b46..4956715b9 100644 --- a/internal/apply/apply.go +++ b/internal/apply/apply.go @@ -106,10 +106,7 @@ func promptEnvironments() []string { "Both Staging and Production": {"stage", "prod"}, } - var labels []string - for label := range items { - labels = append(labels, label) - } + labels := []string{"Staging", "Production", "Both Staging and Production"} providerPrompt := promptui.Select{ Label: "Environments",