mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-22 10:40:39 +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{
|
args := []string{
|
||||||
"validate",
|
"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(
|
return exec.Command(
|
||||||
"terraform",
|
"terraform",
|
||||||
args...,
|
args...,
|
||||||
|
Loading…
Reference in New Issue
Block a user