Browse Source

Pass var files to validate

pull/60/head
Jacob McCann 7 years ago
parent
commit
3a672c7471
  1. 3
      plugin.go

3
plugin.go

@ -177,6 +177,9 @@ func validateCommand(config Config) *exec.Cmd {
args := []string{ args := []string{
"validate", "validate",
} }
for _, v := range config.VarFiles {
args = append(args, "-var-file", fmt.Sprintf("%s", v))
}
for k, v := range config.Vars { for k, v := range config.Vars {
args = append(args, "-var") args = append(args, "-var")
args = append(args, fmt.Sprintf("%s=%s", k, v)) args = append(args, fmt.Sprintf("%s=%s", k, v))

Loading…
Cancel
Save