MON-486 remove workaround for here doc bug with fmt
This commit is contained in:
parent
85854e5baf
commit
c16e807c1a
@ -31,11 +31,7 @@ EOF
|
|||||||
terraform init ${dir}
|
terraform init ${dir}
|
||||||
terraform validate ${dir}
|
terraform validate ${dir}
|
||||||
rm -f ${dir}/tmp.tf
|
rm -f ${dir}/tmp.tf
|
||||||
# hack to work around bug https://github.com/hashicorp/terraform/issues/21434
|
|
||||||
# TODO when fixed, remove this bloc and add "terraform fmt -recursive" to the end of this file
|
|
||||||
for file in $(grep ' = <<E' ${dir}/* | cut -d':' -f1 | sort | uniq); do
|
|
||||||
sed -Ei '/<<EO(Q|F)/,/EO(Q|F)/ s/^#*/#/' ${file}
|
|
||||||
terraform fmt ${dir}
|
|
||||||
sed -Ei '/<<EO(Q|F)/,/EO(Q|F)/ s/^[[:space:]]*#//' ${file}
|
|
||||||
done
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
terraform fmt -recursive
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user