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:
parent
8e15fdf886
commit
3a672c7471
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user