From 3a672c7471ee3f3982d43bb38f99674af4c22d8d Mon Sep 17 00:00:00 2001 From: Jacob McCann Date: Thu, 1 Feb 2018 16:03:39 -0600 Subject: [PATCH] Pass var files to validate --- plugin.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin.go b/plugin.go index afafd5a..81c4d08 100644 --- a/plugin.go +++ b/plugin.go @@ -177,6 +177,9 @@ func validateCommand(config Config) *exec.Cmd { args := []string{ "validate", } + for _, v := range config.VarFiles { + args = append(args, "-var-file", fmt.Sprintf("%s", v)) + } for k, v := range config.Vars { args = append(args, "-var") args = append(args, fmt.Sprintf("%s=%s", k, v))