0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-11-25 09:40:39 +00: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{ 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))