Skip to content

Commit

Permalink
fix(terraform_validate): Run terraform init on "Missing required …
Browse files Browse the repository at this point in the history
…provider" error (#586)
  • Loading branch information
fwolfheimer authored Nov 16, 2023
1 parent 95fc56f commit 6e2bb2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hooks/terraform_validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6e2bb2e

Please sign in to comment.