terraform_validate hook doesn't run terraform init
if a provider is not installed even when using --retry-once-with-cleanup=true
#585
Labels
Describe the bug
In a situation where the Terraform providers are not installed the
terraform_validate
hook doesn't executeterraform init
to install the providers even if the hook is configured with the option--retry-once-with-cleanup=true
. I ran in a situation where theterraform_validate
hook terminated with an error showing the following error output (from Terraform apparently):The problem is that the function
match_validate_errors
in theterraform_validate.sh
script doesn't have the errorMissing required provider
in its list of errors for whichterraform init
should be called to fix them.How can we reproduce it?
Use it with a fresh TF config where no provider has been installed, yet.
The text was updated successfully, but these errors were encountered: