mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
fix(terraform_validate): Run terraform init on "Missing required provider" error (#586)
This commit is contained in:
parent
95fc56f84c
commit
6e2bb2e2a1
1 changed files with 1 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ function match_validate_errors {
|
|||
"Module version requirements have changed") return 1 ;;
|
||||
"Module not installed") return 1 ;;
|
||||
"Could not load plugin") return 1 ;;
|
||||
"Missing required provider") return 1 ;;
|
||||
*"there is no package for"*"cached in .terraform/providers") return 1 ;;
|
||||
esac
|
||||
done < <(jq -rc '.diagnostics[]' <<< "$validate_output")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue