0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-09-19 15:32:45 +02:00

Pass var files to validate

This commit is contained in:
Jacob McCann 2018-02-01 16:03:39 -06:00
parent 8e15fdf886
commit 3a672c7471

View File

@ -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))