From 1b2911a03e3670f68cea690911c9012fbc148d63 Mon Sep 17 00:00:00 2001 From: Gurarpit Singh Date: Sat, 9 Nov 2019 22:20:15 +0000 Subject: [PATCH] Remove vars from tf validate --- plugin.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugin.go b/plugin.go index 07dfaa0..2d7ef7d 100644 --- a/plugin.go +++ b/plugin.go @@ -324,16 +324,10 @@ func tfPlan(config Config, destroy bool) *exec.Cmd { ) } -func tfValidate(config Config) *exec.Cmd { +func tfValidate() *exec.Cmd { args := []string{ "validate", } - for _, v := range config.VarFiles { - args = append(args, fmt.Sprintf("-var-file=%s", v)) - } - for k, v := range config.Vars { - args = append(args, "-var", fmt.Sprintf("%s=%s", k, v)) - } return exec.Command( "terraform", args...,