mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-09 18:00:40 +00:00
Remove vars from tf validate
This commit is contained in:
parent
40f0285956
commit
1b2911a03e
@ -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...,
|
||||
|
Loading…
Reference in New Issue
Block a user