Skip to content

Commit 4ea6b14

Browse files
fix: Suppress duplicate error messages in terraform_validate (antonbabenko#577)
Co-authored-by: George L. Yermulnik <[email protected]>
1 parent 66a1469 commit 4ea6b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/terraform_validate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function per_dir_hook_unique_part {
113113
# First try `terraform validate` with the hope that all deps are
114114
# pre-installed. That is needed for cases when `.terraform/modules`
115115
# or `.terraform/providers` missed AND that is expected.
116-
terraform validate "${args[@]}" 2>&1 && {
116+
terraform validate "${args[@]}" &> /dev/null && {
117117
exit_code=$?
118118
return $exit_code
119119
}

0 commit comments

Comments
 (0)