From 9987c15851629309b9f79eda7b2e4eff9114c72d Mon Sep 17 00:00:00 2001 From: eximus Date: Thu, 22 Feb 2024 11:05:40 -0500 Subject: [PATCH] pipeline variables - fix issue where flags not loaded correctly --- cmd/pipeline/variables.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/pipeline/variables.go b/cmd/pipeline/variables.go index 3128d37..1a312b2 100644 --- a/cmd/pipeline/variables.go +++ b/cmd/pipeline/variables.go @@ -19,12 +19,12 @@ var VariablesCmd = &cobra.Command{ repo := viper.GetString("repo") variables := <-api.GetPipelineVariables(repo) - setVars, _ := cmd.Flags().GetStringSlice("set") + setVars, _ := cmd.Flags().GetStringArray("set") upsertVariables(repo, setVars, variables, false) - setSecureVars, _ := cmd.Flags().GetStringSlice("set-secure") + setSecureVars, _ := cmd.Flags().GetStringArray("set-secure") upsertVariables(repo, setSecureVars, variables, true) - deleteVars, _ := cmd.Flags().GetStringSlice("delete") + deleteVars, _ := cmd.Flags().GetStringArray("delete") if len(deleteVars) > 0 { for _, toDelete := range deleteVars { for _, ev := range variables {