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...,