File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -37,20 +37,15 @@ jobs:
37
37
if [ -f '.tflint.hcl' ]; then
38
38
sed -i "/terraform_version =/s/\".*\"/\"${tf_ver}\"/" .tflint.hcl
39
39
else
40
- # TODO: Create ignore_module section of all modules
41
- # grep -h '[^a-zA-Z]source[ =]' *.tf | sed -r 's/.*=\s+//' | sort -u
42
- echo -e "config {\nterraform_version = \"${tf_ver}\"\ndeep_check = true\n}" > .tflint.hcl
43
- fi
44
- echo "tflint configuration modified:"
45
- cat .tflint.hcl
46
- {
47
- echo -e "config {\nterraform_version = \"${tf_ver}\"\ndeep_check = true\nignore_module = {"
48
- for module in $(grep -h '[^a-zA-Z]source[ =]' *.tf | sed -r 's/.*=\s+//' | sort -u); do
49
- echo "${module} = true"
50
- done
51
- echo "}}"
52
- } > .tflint.hcl
53
- echo "tflint configuration NEW:"
40
+ {
41
+ echo -e "config {\nterraform_version = \"${tf_ver}\"\ndeep_check = true\nignore_module = {"
42
+ for module in $(grep -h '[^a-zA-Z]source[ =]' *.tf | sed -r 's/.*=\s+//' | sort -u); do
43
+ echo "${module} = true"
44
+ done
45
+ echo "}}"
46
+ } > .tflint.hcl
47
+ fi
48
+ echo "tflint configuration:"
54
49
cat .tflint.hcl
55
50
- run :
56
51
# Not supporting modules from registry ?? v0.5.4
You can’t perform that action at this time.
0 commit comments