Skip to content

Commit

Permalink
fix: Suppress duplicate error messages in terraform_validate (#577)
Browse files Browse the repository at this point in the history
Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
  • Loading branch information
MaxymVlasov and yermulnik committed Oct 11, 2023
1 parent 66a1469 commit 4ea6b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/terraform_validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function per_dir_hook_unique_part {
# First try `terraform validate` with the hope that all deps are
# pre-installed. That is needed for cases when `.terraform/modules`
# or `.terraform/providers` missed AND that is expected.
terraform validate "${args[@]}" 2>&1 && {
terraform validate "${args[@]}" &> /dev/null && {
exit_code=$?
return $exit_code
}
Expand Down

0 comments on commit 4ea6b14

Please sign in to comment.