Skip to content

Commit

Permalink
Fix tflint error 'Command line arguments support was dropped in v0.47…
Browse files Browse the repository at this point in the history
…. Use --chdir or --filter instead.'.
  • Loading branch information
ewbankkit committed Jun 23, 2023
1 parent 1706ed9 commit 01e136b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ci/scripts/validate-terraform-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ while IFS= read -r block ; do

# We need to capture the output and error code here. We don't want to exit on the first error
set +e
tflint_output=$(tflint --config .ci/.tflint.hcl "${rules[@]}" "$tf" 2>&1)
tflint_output=$(tflint --config .ci/.tflint.hcl --filter=$tf "${rules[@]}" 2>&1)
tflint_exitcode=$?
set -e

Expand Down
2 changes: 1 addition & 1 deletion .ci/scripts/validate-terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ while read -r filename ; do

# We need to capture the output and error code here. We don't want to exit on the first error
set +e
tflint_output=$(${TFLINT_CMD} --config .ci/.tflint.hcl "${rules[@]}" "$tf" 2>&1)
tflint_output=$(${TFLINT_CMD} --config .ci/.tflint.hcl --filter=$tf "${rules[@]}" 2>&1)
tflint_exitcode=$?
set -e

Expand Down

0 comments on commit 01e136b

Please sign in to comment.