forked from github/pre-commit-opentofu
fix: Suppress duplicate error messages in terraform_validate (#577)
Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
This commit is contained in:
parent
66a1469a7c
commit
4ea6b14c6f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue