Skip to content

Commit 6e2bb2e

Browse files
authored
fix(terraform_validate): Run terraform init on "Missing required provider" error (antonbabenko#586)
1 parent 95fc56f commit 6e2bb2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hooks/terraform_validate.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function match_validate_errors {
5555
"Module version requirements have changed") return 1 ;;
5656
"Module not installed") return 1 ;;
5757
"Could not load plugin") return 1 ;;
58+
"Missing required provider") return 1 ;;
5859
*"there is no package for"*"cached in .terraform/providers") return 1 ;;
5960
esac
6061
done < <(jq -rc '.diagnostics[]' <<< "$validate_output")

0 commit comments

Comments
 (0)