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

Remove vars from tf validate

This commit is contained in:
Gurarpit Singh 2019-11-09 22:20:15 +00:00 committed by GitHub
parent 40f0285956
commit 1b2911a03e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,16 +324,10 @@ func tfPlan(config Config, destroy bool) *exec.Cmd {
)
}
func tfValidate(config Config) *exec.Cmd {
func tfValidate() *exec.Cmd {
args := []string{
"validate",
}
for _, v := range config.VarFiles {
args = append(args, fmt.Sprintf("-var-file=%s", v))
}
for k, v := range config.Vars {
args = append(args, "-var", fmt.Sprintf("%s=%s", k, v))
}
return exec.Command(
"terraform",
args...,