mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-09 18:00:40 +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{
|
||||
"validate",
|
||||
}
|
||||
for _, v := range config.VarFiles {
|
||||
args = append(args, "-var-file", fmt.Sprintf("%s", v))
|
||||
}
|
||||
for k, v := range config.Vars {
|
||||
args = append(args, "-var")
|
||||
args = append(args, fmt.Sprintf("%s=%s", k, v))
|
||||
|
Loading…
Reference in New Issue
Block a user