From 5ba3f713d5c527be9fd4c6b2dfe212d0bf6d0fd8 Mon Sep 17 00:00:00 2001 From: David Cheung Date: Tue, 15 Sep 2020 18:02:00 -0400 Subject: [PATCH] fix: retain environment order during zero apply --- 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",