diff --git a/plugin.go b/plugin.go index 2736675..ef8c94c 100644 --- a/plugin.go +++ b/plugin.go @@ -312,7 +312,7 @@ func tfValidate(config Config) *exec.Cmd { "validate", } for _, v := range config.VarFiles { - args = append(args, "-var-file", fmt.Sprintf("%s", v)) + args = append(args, "-var-file=%s", fmt.Sprintf("%s", v)) } for k, v := range config.Vars { args = append(args, "-var")