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 @@