Browse Source

Remove vars from tf validate

pull/106/head
Gurarpit Singh 5 years ago
committed by GitHub
parent
commit
1b2911a03e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      plugin.go

8
plugin.go

@ -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…
Cancel
Save