Gurarpit Singh
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
7 deletions
-
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..., |
|
|