Skip to content

Commit ddc0d81

Browse files
authored
fix: Fixed spacing in terraform_wrapper_module_for_each hook (antonbabenko#503)
1 parent b7417bb commit ddc0d81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repos:
3838

3939
# Dockerfile linter
4040
- repo: https://github.com/hadolint/hadolint
41-
rev: v2.12.0
41+
rev: v2.12.1-beta
4242
hooks:
4343
- id: hadolint
4444
args: [

hooks/terraform_wrapper_module_for_each.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,13 @@ EOF
330330
module_outputs=($(echo "$all_tf_content" | hcledit block list | grep output. | cut -d'.' -f 2))
331331

332332
# Looking for sensitive output
333-
local wrapper_output_sensitive="# sensitive = false # No sensitive module output found"
333+
local wrapper_output_sensitive="# sensitive = false # No sensitive module output found"
334334
for module_output in "${module_outputs[@]}"; do
335335
module_output_sensitive=$(echo "$all_tf_content" | hcledit attribute get "output.${module_output}.sensitive")
336336

337337
# At least one output is sensitive - the wrapper's output should be sensitive, too
338338
if [[ "$module_output_sensitive" == "true" ]]; then
339-
wrapper_output_sensitive="sensitive = true # At least one sensitive module output (${module_output}) found (requires Terraform 0.14+)"
339+
wrapper_output_sensitive="sensitive = true # At least one sensitive module output (${module_output}) found (requires Terraform 0.14+)"
340340
break
341341
fi
342342
done

0 commit comments

Comments
 (0)