fix(terraform_validate): Run terraform init on "Missing required provider" error (#586)

This commit is contained in:
Felix Wolfheimer 2023-11-16 18:58:58 +00:00 committed by GitHub
commit 6e2bb2e2a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")