From c16e807c1a6fbe1d321fb5c27fc7ac5018a6ad2d Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Thu, 1 Aug 2019 13:20:30 +0200 Subject: [PATCH] MON-486 remove workaround for here doc bug with fmt --- scripts/99_terraform.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/99_terraform.sh b/scripts/99_terraform.sh index 786abf7..1eee47e 100755 --- a/scripts/99_terraform.sh +++ b/scripts/99_terraform.sh @@ -4,7 +4,7 @@ set -xueo pipefail source "$(dirname $0)/utils.sh" goto_root -for path in $(find "$(get_scope $1)" -name 'inputs.tf' -print); do +for path in $(find "$(get_scope $1)" -name 'inputs.tf' -print); do dir=$(dirname ${path}) cat < ${dir}/tmp.tf provider "datadog" { @@ -31,11 +31,7 @@ EOF terraform init ${dir} terraform validate ${dir} 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 ' = <