From c91b428de4d9502b8f120897942940e3e95784c5 Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Mon, 2 Dec 2024 01:49:10 +0500 Subject: [PATCH] fix(tf): remove semaphore_vars --- services/tasks/LocalJob.go | 10 ++--- web/src/components/TaskParamsForm.vue | 59 ++++++++++++++++++--------- 2 files changed, 42 insertions(+), 27 deletions(-) diff --git a/services/tasks/LocalJob.go b/services/tasks/LocalJob.go index c0d46e62..f1038186 100644 --- a/services/tasks/LocalJob.go +++ b/services/tasks/LocalJob.go @@ -249,14 +249,10 @@ func (t *LocalJob) getTerraformArgs(username string, incomingVersion *string) (a } for name, value := range extraVars { - - var v []byte - v, err = json.Marshal(value) - if err != nil { - return + if name == "semaphore_vars" { + continue } - - args = append(args, "-var", fmt.Sprintf("%s=%s", name, v)) + args = append(args, "-var", fmt.Sprintf("%s=%s", name, value)) } for _, secret := range t.Environment.Secrets { diff --git a/web/src/components/TaskParamsForm.vue b/web/src/components/TaskParamsForm.vue index 4d516a9c..b86ee077 100644 --- a/web/src/components/TaskParamsForm.vue +++ b/web/src/components/TaskParamsForm.vue @@ -37,24 +37,43 @@
- - - - - - + + + + + + + + + + + + + + + + + + +
@@ -66,8 +85,8 @@